Debian Codegraph @

tests/data/cases/jupytext_markdown_fmt.py

raw
1 # Test that Jupytext markdown comments are preserved before fmt:off/on blocks
2 # %% [markdown]
3
4 # fmt: off
5 # fmt: on
6
7 # Also test with other comments
8 # Some comment
9 # %% [markdown]
10 # Another comment
11
12 # fmt: off
13 x = 1
14 # fmt: on
15
16 # Test multiple markdown comments
17 # %% [markdown]
18 # First markdown
19 # %% [code]
20 # Code cell
21
22 # fmt: off
23 y = 2
24 # fmt: on