Skip to content
This repository was archived by the owner on Mar 25, 2022. It is now read-only.

Commit d0560b1

Browse files
committed
Update parser.py
Remove:` new_section['ids'].append(nodes.make_id(name))` Redundant, and cause errors when using non-latin headings. For example: # 标题
1 parent 06bf237 commit d0560b1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

recommonmark/parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ def section(self, block):
108108
name = nodes.fully_normalize_name(title_node.astext())
109109
new_section['names'].append(name)
110110
self.current_node.document.note_implicit_target(new_section, new_section)
111-
new_section['ids'].append(nodes.make_id(name))
112111

113112
self.section_handler.add_new_section(new_section, block.level)
114113
self.current_node = new_section

0 commit comments

Comments
 (0)