Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions myst_parser/docutils_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ def render_bullet_list(self, token: SyntaxTreeNode) -> None:

def render_ordered_list(self, token: SyntaxTreeNode) -> None:
list_node = nodes.enumerated_list()
list_node["enumtype"] = "arabic"
list_node["suffix"] = "."
self.add_line_and_source_path(list_node, token)
with self.current_node_context(list_node, append=True):
self.render_children(token)
Expand Down
6 changes: 3 additions & 3 deletions tests/test_renderers/fixtures/syntax_elements.md
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ Enumerated List:
1. *foo*
.
<document source="notset">
<enumerated_list>
<enumerated_list enumtype="arabic" suffix=".">
<list_item>
<paragraph>
<emphasis>
Expand All @@ -253,14 +253,14 @@ Nested Enumrated List:
1. c
.
<document source="notset">
<enumerated_list>
<enumerated_list enumtype="arabic" suffix=".">
<list_item>
<paragraph>
a
<list_item>
<paragraph>
b
<enumerated_list>
<enumerated_list enumtype="arabic" suffix=".">
<list_item>
<paragraph>
c
Expand Down