mirror of
https://github.com/vale981/recommonmark
synced 2025-03-05 10:01:39 -05:00
Add ids properly to sections for Sphinx
This commit is contained in:
parent
6e23c7ff81
commit
6e3380966d
1 changed files with 1 additions and 0 deletions
|
@ -100,6 +100,7 @@ class CommonMarkParser(object, parsers.Parser):
|
|||
title_node.line = block.start_line
|
||||
append_inlines(title_node, block.inline_content)
|
||||
new_section.append(title_node)
|
||||
new_section['ids'] = nodes.make_id(title_node.astext())
|
||||
|
||||
self.section_handler.add_new_section(new_section, block.level)
|
||||
self.current_node = new_section
|
||||
|
|
Loading…
Add table
Reference in a new issue