Class: Asciidoctor::Standoc::PassInlineMacro

Inherits:
Extensions::InlineMacroProcessor
  • Object
show all
Defined in:
lib/asciidoctor/standoc/macros.rb

Instance Method Summary collapse

Instance Method Details

#process(parent, target, attrs) ⇒ Object



197
198
199
200
201
# File 'lib/asciidoctor/standoc/macros.rb', line 197

def process(parent, target, attrs)
  format = target || "metanorma"
  out = Asciidoctor::Inline.new(parent, :quoted, attrs[1]).convert
  %{<passthrough formats="#{format}">#{out}</passthrough>}
end