Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown parsing bug: multi-line string with codeblock fails to roundtrip #419

Closed
rsokl opened this issue Jan 16, 2020 · 1 comment
Closed
Milestone

Comments

@rsokl
Copy link

rsokl commented Jan 16, 2020

In a jupytext markdown file, opened as a notebook, the cell:

Original md-notebook

will be not be parsed correctly upon opening the md file again:

After re-opening

Here is the markdown file:

---
jupyter:
  jupytext:
    text_representation:
      extension: .md
      format_name: markdown
      format_version: '1.2'
      jupytext_version: 1.3.1
  kernelspec:
    display_name: Python [conda env:hardnet]
    language: python
    name: conda-env-hardnet-py
---

```python
readme = """
above

```python
x = 2
```

below
"""
```

@mwouts mwouts added this to the 1.3.3 milestone Jan 17, 2020
@mwouts
Copy link
Owner

mwouts commented Jan 17, 2020

Interesting! Thanks @rsokl for spotting this. I'll have a look soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants