diff options
| author | Waylan Limberg <waylan.limberg@icloud.com> | 2017-01-18 10:27:59 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-18 10:27:59 -0500 |
| commit | b52293b2858138231795aa72aac1cf4799eb8da9 (patch) | |
| tree | 0f1963fea0359463da32c23d1b7db8aafe5ec5b0 | |
| parent | 41101dcaed9d77e14ef37fe29f0b903496ee1fd5 (diff) | |
| download | python-markdown-b52293b2858138231795aa72aac1cf4799eb8da9.tar.gz | |
Update fenced code extension to match codehilite lang regex. (#529)
Related to #527.
| -rw-r--r-- | markdown/extensions/fenced_code.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/fenced_code.py b/markdown/extensions/fenced_code.py index 8c9935e..277bac4 100644 --- a/markdown/extensions/fenced_code.py +++ b/markdown/extensions/fenced_code.py @@ -37,7 +37,7 @@ class FencedCodeExtension(Extension): class FencedBlockPreprocessor(Preprocessor): FENCED_BLOCK_RE = re.compile(r''' (?P<fence>^(?:~{3,}|`{3,}))[ ]* # Opening ``` or ~~~ -(\{?\.?(?P<lang>[a-zA-Z0-9_+-]*))?[ ]* # Optional {, and lang +(\{?\.?(?P<lang>[\w#.+-]*))?[ ]* # Optional {, and lang # Optional highlight lines, single- or double-quote-delimited (hl_lines=(?P<quot>"|')(?P<hl_lines>.*?)(?P=quot))?[ ]* }?[ ]*\n # Optional closing } |
