class Asciidoctor::Standoc::IndexRangeInlineMacro
Public Instance Methods
process(parent, target, attr)
click to toggle source
# File lib/asciidoctor/standoc/macros.rb, line 56 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