facebook / docusaurus

Easy to maintain open source documentation websites.
https://docusaurus.io
MIT License
56.69k stars 8.53k forks source link

No markdown processing if list item starts with html tag #8945

Closed reliak closed 1 year ago

reliak commented 1 year ago

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

When a markdown list item starts with an html tag, the rest of the list item text is not processed by markdown.

Reproducible demo

No response

Steps to reproduce

Make a list:

Some list

- <kbd>G</kbd>: **G** key
- x<kbd>G</kbd>: **G** key

Expected behavior

Markdown processing should be triggered for all of the above list items.

Actual behavior

Markdown processing is only triggered for the second list item (which does not start with an html tag).

Your environment

No response

Self-service

slorber commented 1 year ago

Fixed by MDX 2 (upcoming Docusaurus v3): https://github.com/facebook/docusaurus/pull/8288

Try this in: