1 parent 96dff22 commit e1954d3Copy full SHA for e1954d3
1 file changed
lib/markdown2.py
@@ -1926,9 +1926,9 @@ def _do_code_blocks(self, text):
1926
1927
_fenced_code_block_re = re.compile(r'''
1928
(?:\n+|\A\n?)
1929
- ^```\s{0,2}([\w+-]+)?\s*?\n # opening fence, $1 = optional lang
1930
- (.*?) # $2 = code block content
1931
- ^```[ \t]*\n # closing fence
+ ^```\s{0,2}([\w+-]+)?\s*?\n # opening fence, $1 = optional lang
+ (.*?) # $2 = code block content
+ ^```[ \t]*\n # closing fence
1932
''', re.M | re.X | re.S)
1933
1934
def _fenced_code_block_sub(self, match):
0 commit comments