Class: Asciidoctor::Rhrev::PagerhrefInlineMacroProcessor
- Inherits:
-
Extensions::InlineMacroProcessor
- Object
- Extensions::InlineMacroProcessor
- Asciidoctor::Rhrev::PagerhrefInlineMacroProcessor
- Defined in:
- lib/asciidoctor/rhrev/processors.rb
Overview
Inline macro processor for pagerhref:anchor[] page number references
Instance Method Summary collapse
Instance Method Details
#process(parent, target, attrs) ⇒ Object
41 42 43 44 45 |
# File 'lib/asciidoctor/rhrev/processors.rb', line 41 def process parent, target, attrs # Create a marker that the converter will recognize and replace with page number # Format: [pagerhref:anchor] create_inline parent, :quoted, "[pagerhref:#{target}]", type: :unquoted end |