Also support:
A. upper-case letters
and it goes over many lines
with two paragraphs and all!
a. lower-case letters
I. upper-case roman numerals
i. lower-case roman numerals
(1) numbers again
1) and again
Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
The example taken from
http://docutils.sourceforge.net/docs/user/rst/quickstart.html contains
code blocks nested into definition lists.
This is not supported by the rst mode tokenizer as it would require to
memorize the initial indentation level when the code block starts to be
able to determine whether it ends or not. For now, the tokenizer ends a
code block (or directive body) when it encounters the first line without
indentation.
Fix the example by unindenting the definition lists containing code
blocks.
Also, fix the top heading by adding an overline.
Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
The official reStructuredText parser from the docutils library has some
requirements to determine if a "**" sequence is the start of inline bold
text.
- The character before "**" must be either:
+ The begining of line
+ A space
+ One of " ' ( < [ { - / :
- The next character after "**" must not be a space.
Then to determine if a "**" is the end of inline bold text.
- The character before "**" must not be a space.
- The character after "**" must be either:
+ The end of line
+ A space
+ One of \ . , ; ! ? - / : " ' ) > ] }
The same requirements apply for inline italics "*", literals "``" and
interpreted role text "`".
See rst parser source code for more details:
http://repo.or.cz/docutils.git/blob/HEAD:/docutils/docutils/parsers/rst/states.py#l527
Signed-off-by: Robin Jarry <robin.jarry@6wind.com>