From b52293b2858138231795aa72aac1cf4799eb8da9 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Wed, 18 Jan 2017 10:27:59 -0500 Subject: Update fenced code extension to match codehilite lang regex. (#529) Related to #527. --- markdown/extensions/fenced_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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^(?:~{3,}|`{3,}))[ ]* # Opening ``` or ~~~ -(\{?\.?(?P[a-zA-Z0-9_+-]*))?[ ]* # Optional {, and lang +(\{?\.?(?P[\w#.+-]*))?[ ]* # Optional {, and lang # Optional highlight lines, single- or double-quote-delimited (hl_lines=(?P"|')(?P.*?)(?P=quot))?[ ]* }?[ ]*\n # Optional closing } -- cgit v1.2.3