mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add reStructuredText parsing functions to `SphinxDirective` (#12492)
This commit is contained in:
@@ -38,7 +38,7 @@ class TodoDirective(SphinxDirective):
|
||||
|
||||
todo_node = todo('\n'.join(self.content))
|
||||
todo_node += nodes.title(_('Todo'), _('Todo'))
|
||||
self.state.nested_parse(self.content, self.content_offset, todo_node)
|
||||
todo_node += self.parse_content_to_nodes()
|
||||
|
||||
if not hasattr(self.env, 'todo_all_todos'):
|
||||
self.env.todo_all_todos = []
|
||||
|
||||
Reference in New Issue
Block a user