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

Code fences inside of lists exits list #276

Open
albertyw opened this issue Nov 3, 2017 · 0 comments
Open

Code fences inside of lists exits list #276

albertyw opened this issue Nov 3, 2017 · 0 comments
Labels
Bug

Comments

@albertyw
Copy link

@albertyw albertyw commented Nov 3, 2017

Possibly related to #275 or #263

Adding a code block inside of a list results in the parser immediately exiting the list <li> and <ul> / <ol> for the code block and anything below it. Note that this is with "fenced-code-blocks" enabled.

For this markdown:

1. asdf
    ```
    asdf
    ```
    asdf
1. qwer

python-markdown2 produces:

  1. asdf
asdf

asdf

  1. qwer

Github markdown syntax produces:

  1. asdf
    asdf
    
    asdf
  2. qwer
@nicholasserra nicholasserra added the Bug label Jul 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants