Skip to content

Code fences inside of lists exits list #276

Description

@albertyw

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions