Class: Metanorma::Ietf::InlineCrefMacro

Inherits:
Asciidoctor::Extensions::InlineMacroProcessor
  • Object
show all
Defined in:
lib/metanorma/ietf/macros.rb

Instance Method Summary collapse

Instance Method Details

#process(parent, _target, attrs) ⇒ Object



11
12
13
14
# File 'lib/metanorma/ietf/macros.rb', line 11

def process(parent, _target, attrs)
  out = Asciidoctor::Inline.new(parent, :quoted, attrs["text"]).convert
  %{<crefref>#{out}</crefref>}
end