You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note: HTML in markdown is still bound by how HTML works in CommonMark. Make sure to use blank lines around block-level HTML that again contains markdown!
Initial checklist
Affected packages and versions
rehype-raw 7.0.0
Link to runnable example
https://codesandbox.io/s/rehype-raw-issue-yvcsts?file=/src/app.tsx
Steps to reproduce
const markdownSource = `
[This link doesn't work when a div is present](abc123) Nor does *markdown that follows*When using rehype-raw with React-Markdown
until a double new line Hooray and Hurrah!
at which point
This link works again
It's almost as though it terminates treating the content as HTML at carriage returns instead of the closing HTML tag.
`;
Expected behavior
markdown parsing should resume from the closing tag (or whatever the HTML element is)
Actual behavior
It continues to treat the content as HTML, no longer parsing the markdown, until the next double carriage return \n\n
Runtime
Node v17
Package manager
yarn 3
OS
Windows
Build and bundle tools
Create React App
The text was updated successfully, but these errors were encountered: