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

Nested code blocks are not supported, corrupting files using it #2181

Open
1 task done
FlorianLudwig opened this issue Jun 5, 2020 · 1 comment
Open
1 task done

Comments

@FlorianLudwig
Copy link

Description

  • Can you reproduce the issue?

Steps to reproduce

  1. Have a file with nested code blocks:
````markdown

```python

def code_block():
    pass
```

````
  1. load file
  2. save file
  3. file syntax corrupted:
```markdown

```python

def code_block():
    pass
```

```

Expected behavior:

Don't change the files meaning.

Versions

  • Mark Text: v0.16.1
@brainchild0
Copy link
Contributor

Loosely related to #2189.

If the application would retain the literal number of backtick (`) characters that bound the code block, then the intended meaning of the original document, of nested code blocks, would be preserved.

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