-
-
Notifications
You must be signed in to change notification settings - Fork 916
Closed
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
Steps to reproduce
import Markdown from 'react-markdown'
function App() {
const markdown =`
1. **A1**
* B1
* B2
2. **A2**
* B1
* B2
`
const markdown2 = `
1. **A1**
* B1
* B2
2. **A2**
* B1
* B2
`
return (
<div className="App">
<Markdown>{markdown}</Markdown>
<br />
<Markdown>{markdown2}</Markdown>
</div>
);
}
export default App;
Actual behavior
In this example, markdown2's A2 is also contained in a <p>
tag, which adds unintended margin
Expected behavior
We expect this break to only add spacing to A1 (via the <p>
tag), and not A2.
Expected:

Runtime
No response
Package manager
No response
Operating system
No response
Build and bundle tools
No response
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