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