Skip to content

markdown -> notebook bug: md code blocks with consecutive newlines #188

Closed
@rsokl

Description

Any markdown code-block containing multiple consecutive newlines is parsed incorrectly during conversion to a notebook. The additional newlines will become distinct notebook cells. For example:

---
jupyter:
  jupytext:
    text_representation:
      extension: .md
      format_name: markdown
      format_version: '1.0'
      jupytext_version: 1.0.1
  kernelspec:
    display_name: Python 3
    language: python
    name: python3
---

# ```python
x = 1

y = 2
# ```

(note that the lines of code are separated by two newline characters)

becomes:
image

P.S. jupytext rocks! Thanks for the awesome work!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions