We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41101dc commit b52293bCopy full SHA for b52293b
1 file changed
markdown/extensions/fenced_code.py
@@ -37,7 +37,7 @@ def extendMarkdown(self, md, md_globals):
37
class FencedBlockPreprocessor(Preprocessor):
38
FENCED_BLOCK_RE = re.compile(r'''
39
(?P<fence>^(?:~{3,}|`{3,}))[ ]* # Opening ``` or ~~~
40
-(\{?\.?(?P<lang>[a-zA-Z0-9_+-]*))?[ ]* # Optional {, and lang
+(\{?\.?(?P<lang>[\w#.+-]*))?[ ]* # Optional {, and lang
41
# Optional highlight lines, single- or double-quote-delimited
42
(hl_lines=(?P<quot>"|')(?P<hl_lines>.*?)(?P=quot))?[ ]*
43
}?[ ]*\n # Optional closing }
0 commit comments