Class: Metanorma::Standoc::IndexRangeInlineMacro
- Inherits:
-
Asciidoctor::Extensions::InlineMacroProcessor
- Object
- Asciidoctor::Extensions::InlineMacroProcessor
- Metanorma::Standoc::IndexRangeInlineMacro
- Defined in:
- lib/metanorma/standoc/macros_inline.rb
Instance Method Summary collapse
Instance Method Details
#process(parent, target, attr) ⇒ Object
43 44 45 46 47 48 |
# File 'lib/metanorma/standoc/macros_inline.rb', line 43 def process(parent, target, attr) text = attr["text"] text = "((#{text}))" unless /^\(\(.+\)\)$/.match?(text) out = parent.sub_macros(text) out.sub(/<index>/, "<index to='#{target}'>") end |