Class: Asciidoctor::Standoc::IndexRangeInlineMacro
- Inherits:
-
Extensions::InlineMacroProcessor
- Object
- Extensions::InlineMacroProcessor
- Asciidoctor::Standoc::IndexRangeInlineMacro
- Defined in:
- lib/asciidoctor/standoc/macros.rb
Instance Method Summary collapse
Instance Method Details
#process(parent, target, attr) ⇒ Object
57 58 59 60 61 62 |
# File 'lib/asciidoctor/standoc/macros.rb', line 57 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 |