mirror of
https://github.com/vale981/recommonmark
synced 2025-03-05 10:01:39 -05:00
fix contents directive
This commit is contained in:
parent
fdeeda5f6f
commit
0183db8365
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ class AutoStructify(transforms.Transform):
|
||||||
node = nodes.section()
|
node = nodes.section()
|
||||||
self.state_machine.state.nested_parse(
|
self.state_machine.state.nested_parse(
|
||||||
StringList(content, source=original_node.source),
|
StringList(content, source=original_node.source),
|
||||||
0, node=node, match_titles=False)
|
0, node=node, match_titles=True)
|
||||||
return node.children[:]
|
return node.children[:]
|
||||||
else:
|
else:
|
||||||
match = re.search('[ ]?[\w_-]+::.*', language)
|
match = re.search('[ ]?[\w_-]+::.*', language)
|
||||||
|
|
Loading…
Add table
Reference in a new issue