fix: Fix indented markdown in html#2052
Conversation
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/markedjs/markedjs/BUgTvEdPFRDvwkiPPmi1MYWZccbi |
000a6f3 to
91d4185
Compare
|
I don't think that actually fixes it according to this demo the test you added should pass without changing anything in marked. |
UziTech
left a comment
There was a problem hiding this comment.
This looks like it could work.
Co-authored-by: Tony Brix <[email protected]>
UziTech
left a comment
There was a problem hiding this comment.
Thanks for working on this! 💯
## [2.0.4](v2.0.3...v2.0.4) (2021-05-20) ### Bug Fixes * Fix indented markdown in html ([#2052](#2052)) ([6435ac9](6435ac9))
|
🎉 This PR is included in version 2.0.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
| + '|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)' // (7) closing tag | ||
| + '|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)' // (6) | ||
| + '|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)' // (7) open tag | ||
| + '|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)' // (7) closing tag |
There was a problem hiding this comment.
No REDOS issues in this change.
## [2.0.4](markedjs/marked@v2.0.3...v2.0.4) (2021-05-20) ### Bug Fixes * Fix indented markdown in html ([#2052](markedjs/marked#2052)) ([c311e50](markedjs/marked@c311e50))

Marked version: 1.2.8-2.0.3
Markdown flavor: n/a
Description
Contributor
Committer
In most cases, this should be a different person than the contributor.