https://codepen.io/Elemeandor/full/NWbMZoM
I have two large problems with what I made.
-
I’m using
dangerouslySetInnerHTML
to render the marked text. But I’m uncomfortable with this solution since setting innerHTML is a risky and often times poor practice in general. -
I honestly have no idea how to get links rendered with markup to open in new tags. I honestly think that’s harder than getting the parser to recognize carriage returns as
<br>
tags. I have not seen a good way to addtarget="_blank"
to my link tags in markup at all.
Any other criticism is also welcome but these were the two glaring issues I saw.