Skip to content

Markdown recognizes list tags only when immediatly preceeded by header tag #7248

Closed
@martinklein

Description

@martinklein

Link: https://www.linode.com/docs/guides/how-to-use-python-markdown-to-convert-markdown-to-html/

When I load this into markup:

Below a markdown list should be created:
* point 1
* point 2
1. point 1
2. point 2

markdown returns this:

<p>Below a markdown list should be created:
* point 1
* point 2
1. point 1
2. point 2</p>

So it does not created the html list tags.
But when I load this into markdown:

## Below a markdown list should be created:
* point 1
* point 2
## and again
1. point 1
2. point 2

it correctly creates the html list tags:

<h2>Below a markdown list should be created:</h2>
<ul>
<li>point 1</li>
<li>point 2</li>
</ul>
<h2>and again</h2>
<ol>
<li>point 1</li>
<li>point 2</li>
</ol>

Many thanks for your help.
Regards Martin Klein

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions