mirror of
https://github.com/vale981/recommonmark
synced 2025-03-05 10:01:39 -05:00
no need for a separate regex variable
This commit is contained in:
parent
a972f9b1f5
commit
aa61efe5cb
1 changed files with 1 additions and 2 deletions
|
@ -244,8 +244,7 @@ class AutoStructify(transforms.Transform):
|
|||
0, node=node, match_titles=False)
|
||||
return node.children[:]
|
||||
else:
|
||||
directive_re = '[ ]?[\w_-]+::.*'
|
||||
match = re.search(directive_re, language)
|
||||
match = re.search('[ ]?[\w_-]+::.*', language)
|
||||
if match:
|
||||
parser = Parser()
|
||||
new_doc = new_document(None, self.document.settings)
|
||||
|
|
Loading…
Add table
Reference in a new issue