mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
ifconfig now allows titles as content.
This commit is contained in:
parent
843b0d07e9
commit
da12e2f36d
@ -41,7 +41,8 @@ class IfConfig(Directive):
|
||||
node.document = self.state.document
|
||||
node.line = self.lineno
|
||||
node['expr'] = self.arguments[0]
|
||||
self.state.nested_parse(self.content, self.content_offset, node)
|
||||
self.state.nested_parse(self.content, self.content_offset,
|
||||
node, match_titles=1)
|
||||
return [node]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user