class AsciidoctorLists::Asciidoctor::ListMacro

Replaces list-of::element[] with UUID and saves attributes in ListMacroPlaceholder

Public Instance Methods

process(parent, target, attrs) click to toggle source
# File lib/asciidoctor-lists/extensions.rb, line 16
def process(parent, target, attrs)
  uuid = SecureRandom.uuid
  ListMacroAttributes[uuid] = {
    element: target,
    enhanced_rendering: attrs['enhanced_rendering']
  }
  create_paragraph parent, uuid, {}
end