Skip to content

Commit

Permalink
Fix #365
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Oct 29, 2019
1 parent b74dfcc commit 867dd8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupytext/cell_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def extract_content(self, lines):
class MarkdownCellReader(BaseCellReader):
"""Read notebook cells from Markdown documents"""
comment = ''
start_code_re = re.compile(r"^```({})(.*)".format('|'.join(
start_code_re = re.compile(r"^```({})($|\s(.*)$)".format('|'.join(
_JUPYTER_LANGUAGES.union({str.upper(lang) for lang in _JUPYTER_LANGUAGES})).replace('+', '\\+')))
non_jupyter_code_re = re.compile(r"^```")
end_code_re = re.compile(r"^```\s*$")
Expand Down

0 comments on commit 867dd8f

Please sign in to comment.