Module: Asciidoctor::Rfc::V2::Lists

Included in:
Converter
Defined in:
lib/asciidoctor/rfc/v2/lists.rb

Constant Summary collapse

OLIST_TYPES =
Hash.new("numbers").merge(
  arabic:     "numbers",
  # decimal:    "1", # not supported
  loweralpha: "letters",
  # lowergreek: "lower-greek", # not supported
  lowerroman: "format %i.",
  upperalpha: "format %C.",
  upperroman: "format %I.",
).freeze

Instance Method Summary collapse

Instance Method Details

#dlist(node) ⇒ Object

Syntax:

[hangIndent=n] (optional)
A:: B
C:: D


33
34
35
# File 'lib/asciidoctor/rfc/v2/lists.rb', line 33

def dlist(node)
  noko { |xml| wrap_list :dlist_naked, node, xml }
end

#olist(node) ⇒ Object

Syntax:

[counter=token] (optional)
. A
. B


25
26
27
# File 'lib/asciidoctor/rfc/v2/lists.rb', line 25

def olist(node)
  noko { |xml| wrap_list :olist_naked, node, xml }
end

#ulist(node) ⇒ Object

Syntax:

* A
* B


7
8
9
# File 'lib/asciidoctor/rfc/v2/lists.rb', line 7

def ulist(node)
  noko { |xml| wrap_list :ulist_naked, node, xml }
end