Class: AsciidoctorLists::Asciidoctor::ListMacro
- Inherits:
-
Asciidoctor::Extensions::BlockMacroProcessor
- Object
- Asciidoctor::Extensions::BlockMacroProcessor
- AsciidoctorLists::Asciidoctor::ListMacro
- Defined in:
- lib/asciidoctor-lists/extensions.rb
Overview
Replaces list-of::element[] with UUID and saves attributes in ListMacroPlaceholder
Instance Method Summary collapse
Instance Method Details
#process(parent, target, attrs) ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'lib/asciidoctor-lists/extensions.rb', line 17 def process(parent, target, attrs) uuid = SecureRandom.uuid ListMacroAttributes[uuid] = { element: target, enhanced_rendering: attrs['enhanced_rendering'], hide_empty_section: attrs['hide_empty_section'] } create_paragraph parent, uuid, {} end |