mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-13 00:42:11 -05:00
Add reStructuredText parsing functions to `SphinxDirective` (#12492)
This commit is contained in:
1 parent
f0c5178176
commit
1887df0b5c
20 files changed
+362
-101
No files matched your search
@@ -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