mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Don't disable alphabetical and roman lists anymore.
This commit is contained in:
parent
8c39c19bf3
commit
3715bd90a0
3
CHANGES
3
CHANGES
@ -25,6 +25,9 @@ New features added
|
||||
|
||||
- Added ``cmember`` role for consistency.
|
||||
|
||||
- Lists enumerated by letters or roman numerals are now handled like in
|
||||
standard reST.
|
||||
|
||||
* HTML output and templates:
|
||||
|
||||
- Incompatible change: The "root" relation link (top left in the
|
||||
|
@ -67,12 +67,6 @@ autonumbered using a ``#`` sign::
|
||||
#. This is a numbered list.
|
||||
#. It has two items too.
|
||||
|
||||
Note that Sphinx disables the use of enumerated lists introduced by alphabetic
|
||||
or roman numerals, such as ::
|
||||
|
||||
A. First item
|
||||
B. Second item
|
||||
|
||||
|
||||
Nested lists are possible, but be aware that they must be separated from the
|
||||
parent list items by blank lines::
|
||||
|
@ -41,13 +41,6 @@ from docutils.writers import UnfilteredWriter
|
||||
from docutils.transforms import Transform
|
||||
from docutils.transforms.parts import ContentsFilter
|
||||
|
||||
# monkey-patch reST parser to disable alphabetic and roman enumerated lists
|
||||
from docutils.parsers.rst.states import Body
|
||||
Body.enum.converters['loweralpha'] = \
|
||||
Body.enum.converters['upperalpha'] = \
|
||||
Body.enum.converters['lowerroman'] = \
|
||||
Body.enum.converters['upperroman'] = lambda x: None
|
||||
|
||||
from sphinx import addnodes
|
||||
from sphinx.util import get_matching_docs, SEP
|
||||
from sphinx.directives import additional_xref_types
|
||||
|
Loading…
Reference in New Issue
Block a user