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
52 53 54 55 56 57 |
# File 'lib/asciidoctor/standoc/macros.rb', line 52 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 |