Class: Metanorma::Standoc::IndexRangeInlineMacro
- Inherits:
-
Asciidoctor::Extensions::InlineMacroProcessor
- Object
- Asciidoctor::Extensions::InlineMacroProcessor
- Metanorma::Standoc::IndexRangeInlineMacro
- Defined in:
- lib/metanorma/standoc/macros_link.rb
Instance Method Summary collapse
Instance Method Details
#process(parent, target, attr) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/metanorma/standoc/macros_link.rb', line 38 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 |