-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
🐛 type/bugThis is a problemThis is a problem👶 semver/patchThis is a backwards-compatible fixThis is a backwards-compatible fix💪 phase/solvedPost is donePost is done🗄 area/interfaceThis affects the public interfaceThis affects the public interface
Description
Subject of the issue
Fenced code blocks within a number bullet point break if they contain more one new-line in a row.
Your environment
- OS: macOS Mojave 10.14.4
- Packages:
@mdx-js/mdx@1.6.4, via"gatsby-plugin-mdx": "^1.2.6" - Env: yarn 1.22.4, gatsby 2.23.1
Steps to reproduce
Nest a fenced code block under a number bullet point, with two blank lines in a row within the code block. One blank line does not cause this issue.
1. Test
```
broken
example
```
Plain text after the numbered bullet pointExpected behaviour
I would expect this to work fine, parsing the code block correctly and keeping the entire block nested under the numbered bullet point.
Actual behaviour
The second new line appears to cause the parser to end the bullet point, breaking the code block. The ending triple backticks will then start a new code block, causing chaos with the rest of the page
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🐛 type/bugThis is a problemThis is a problem👶 semver/patchThis is a backwards-compatible fixThis is a backwards-compatible fix💪 phase/solvedPost is donePost is done🗄 area/interfaceThis affects the public interfaceThis affects the public interface
