React-markdown: HTML parser: `Cannot read property 'props' of undefined`

Created on 23 Jan 2020  路  4Comments  路  Source: remarkjs/react-markdown

react-markdown is crashing when trying to render this html:

<div class="entities" style="line-height: 2.5">
<mark class="entity" style="background: #7aecec; padding: 0.45em 0.6em; margin: 0 0.25em; line-height: 1; border-radius: 0.35em; box-decoration-break: clone; -webkit-box-decoration-break: clone">

Lorem Ipsum
    <span style="font-size: 0.8em; font-weight: bold; line-height: 1; border-radius: 0.35em; text-transform: uppercase; vertical-align: middle; margin-left: 0.5rem">ORG</span>
</mark>
Testing</br>Testing</br>Testing
</div>
馃悰 typbug

All 4 comments

This may also be fixed on 5.0.0, with this change. Could someone confirm whether that works? Otherwise it鈥檚 just the HTML parser being funky and the plan is for that to be replaced next major.

It still happens at https://remarkjs.github.io/react-markdown/. If I'm reading the history right, that's running 5.0.0 already.

By the way, this looks like a duplicate of #302 and possibly #345 too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dbuchet picture dbuchet  路  3Comments

zhenyulin picture zhenyulin  路  3Comments

jonjaffe picture jonjaffe  路  3Comments

pcvandamcb picture pcvandamcb  路  3Comments

joelin109 picture joelin109  路  3Comments