-
-
Notifications
You must be signed in to change notification settings - Fork 922
Closed as not planned
Closed as not planned
Copy link
Labels
👎 phase/noPost cannot or will not be acted onPost cannot or will not be acted on🙋 no/questionThis does not need any changesThis does not need any changes
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Affected package
react-markdown 10.1.0
Steps to reproduce
import Markdown from 'react-markdown'
const markdown = `
list
1. item 1
2. item 2
list with bolded numbers
**1.** item 2
**2.** item 2
`
function App() {
return <Markdown>{markdown}</Markdown>
}
export default AppActual behavior
Renders as
<p>list</p>
<ol>
<li>item 1</li>
<li>item 2</li>
</ol>
<p>list with bolded numbers
<strong>1.</strong> item 2
<strong>2.</strong> item 2</p>Expected behavior
Bolded numbers in an ordered list should be ignored, i.e. the output should be
<p>list</p>
<ol>
<li>item 1</li>
<li>item 2</li>
</ol>
<p>list with bolded numbers
<ol>
<li>item 1</li>
<li>item 2</li>
</ol>Runtime
Package manager
Operating system
N/A (stackblitz)
Build and bundle tools
Vite
Metadata
Metadata
Assignees
Labels
👎 phase/noPost cannot or will not be acted onPost cannot or will not be acted on🙋 no/questionThis does not need any changesThis does not need any changes