aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2017-01-18 10:27:59 -0500
committerGitHub <noreply@github.com>2017-01-18 10:27:59 -0500
commitb52293b2858138231795aa72aac1cf4799eb8da9 (patch)
tree0f1963fea0359463da32c23d1b7db8aafe5ec5b0
parent41101dcaed9d77e14ef37fe29f0b903496ee1fd5 (diff)
downloadmarkdown-b52293b2858138231795aa72aac1cf4799eb8da9.tar.gz
markdown-b52293b2858138231795aa72aac1cf4799eb8da9.tar.bz2
markdown-b52293b2858138231795aa72aac1cf4799eb8da9.zip
Update fenced code extension to match codehilite lang regex. (#529)
Related to #527.
-rw-r--r--markdown/extensions/fenced_code.py2
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 }