Skip to content

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

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

Closed
martinklein opened this issue Apr 21, 2025 · 2 comments
Closed

Comments

@martinklein
Copy link

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

@Rajakavitha1
Copy link
Collaborator

Thank you for the trying the ordered and unordered list.
If you would like to have a mix of both ordered and unordered list you may have to nest it.
For more details please see: https://www.markdownguide.org/basic-syntax/#unordered-lists

marking this issue as closed now. Please feel free to reopen if any other issue exists.

@martinklein
Copy link
Author

martinklein commented Apr 21, 2025 via email

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

No branches or pull requests

2 participants