##// END OF EJS Templates
minirst: support enumerated lists
Martin Geisler -
r9739:75cff8f1 default
parent child Browse files
Show More
@@ -107,7 +107,7 b' def findliteralblocks(blocks):'
107 107 i += 1
108 108 return blocks
109 109
110 _bulletre = re.compile(r'- ')
110 _bulletre = re.compile(r'(-|[0-9A-Za-z]+\.|\(?[0-9A-Za-z]+\)) ')
111 111 _optionre = re.compile(r'^(--[a-z-]+)((?:[ =][a-zA-Z][\w-]*)? +)(.*)$')
112 112 _fieldre = re.compile(r':(?![: ])([^:]*)(?<! ):( +)(.*)')
113 113 _definitionre = re.compile(r'[^ ]')
@@ -93,6 +93,15 b' We can have indented lists:'
93 93
94 94 Literal block with no indentation (apart from
95 95 the two spaces added to all literal blocks).
96
97 1. This is an enumerated list (first item).
98 2. Continuing with the second item.
99
100 (1) foo
101 (2) bar
102
103 1) Another
104 2) List
96 105 """
97 106
98 107 debugformat('lists', lists, 60)
@@ -113,6 +113,13 b' We can have indented lists:'
113 113
114 114 Literal block with no indentation (apart from
115 115 the two spaces added to all literal blocks).
116
117 1. This is an enumerated list (first item).
118 2. Continuing with the second item.
119 (1) foo
120 (2) bar
121 1) Another
122 2) List
116 123 ----------------------------------------------------------------------
117 124
118 125 lists formatted to fit within 30 characters:
@@ -141,6 +148,15 b' We can have indented lists:'
141 148
142 149 Literal block with no indentation (apart from
143 150 the two spaces added to all literal blocks).
151
152 1. This is an enumerated list
153 (first item).
154 2. Continuing with the second
155 item.
156 (1) foo
157 (2) bar
158 1) Another
159 2) List
144 160 ----------------------------------------------------------------------
145 161
146 162 options formatted to fit within 60 characters:
General Comments 0
You need to be logged in to leave comments. Login now