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

Closed
albertyw opened this issue Nov 3, 2017 · 1 comment
Closed

Code fences inside of lists exits list #276

albertyw opened this issue Nov 3, 2017 · 1 comment
Labels

Comments

@albertyw
Copy link

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
momja added a commit to momja/python-markdown2 that referenced this issue Jul 2, 2022
@momja
Copy link
Contributor

momja commented Feb 6, 2023

@trentm this issue can be resolved

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

No branches or pull requests

3 participants