Skip to content

Commit

Permalink
Try to reproduce #191
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Feb 26, 2019
1 parent c86b473 commit f870d91
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/test_read_simple_percent.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,3 +189,20 @@ def test_multiple_empty_cells():
nb2 = jupytext.reads(text, 'py:percent')
nb2.metadata = nb.metadata
compare(nb, nb2)


def test_first_cell_markdown_191():
text = """# %% [markdown]
# Docstring
# %%
from math import pi
# %% [markdown]
# Another markdown cell
"""

nb = jupytext.reads(text, 'py')
assert nb.cells[0].cell_type == 'markdown'
assert nb.cells[1].cell_type == 'code'
assert nb.cells[2].cell_type == 'markdown'

0 comments on commit f870d91

Please sign in to comment.