Uh oh!
There was an error while loading. Please reload this page.
Render html in heading - #1622
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/markedjs/markedjs/6rqwcwe36 |
UziTech
commented
Mar 20, 2020
@davisjam could you check that |
joshbruce
commented
Mar 20, 2020
Would like to hold off on my approval until @davisjam (or someone) can review for REDOS. |
Gerrit0
commented
Mar 21, 2020
According to http://redos-checker.surge.sh/, it is vulnerable, which makes sense since the lookahead can also match characters in That said, both of these options break rather easily... regex isn't a good html parser. The <ahref="BREAK>" target="_blank">tag</a> |
UziTech
commented
Mar 22, 2020
as for the |
That being said your regex might be better since it is simpler. I would like to match GitHub but I don't know what regex GitHub uses for it's heading ids. |
I simplified the regex to @joshbruce this regex is definitely not vulnerable. |
joshbruce
commented
Mar 22, 2020
I’m finding myself being pulled to family and friends at the moment. Can we temporarily move to a single review model - as long as it doesn’t introduce a security vulnerability? Further, if it does, the only required review would be for the security piece? |
joshbruce
commented
Mar 22, 2020
Not in a position to complete second approves flow. @styfle?? |
UziTech
commented
Mar 22, 2020
I got it. |
Render html in heading
Marked version: 0.8.1
Description
Fixes#1621
Contributor
Committer
In most cases, this should be a different person than the contributor.