Class: Metanorma::Standoc::IdentifierInlineMacro
- Inherits:
-
Asciidoctor::Extensions::InlineMacroProcessor
- Object
- Asciidoctor::Extensions::InlineMacroProcessor
- Metanorma::Standoc::IdentifierInlineMacro
- Defined in:
- lib/metanorma/standoc/macros_inline.rb
Instance Method Summary collapse
Instance Method Details
#process(parent, _target, attrs) ⇒ Object
132 133 134 135 136 |
# File 'lib/metanorma/standoc/macros_inline.rb', line 132 def process(parent, _target, attrs) out = Asciidoctor::Inline.new(parent, :quoted, attrs["text"]).convert .gsub(/((?![<>&])[[:punct:]])/, "\\1‌") %{<identifier>#{out}</identifier>} end |