I’m trying to solve test 8 for the Markdown Previewer app which is to insert a
<br> element anytime there is a carriage return.
For some reason, when I try to replace text inside the marked renderer function it doesn’t work, even though it does work outside the function.
When I call replaceText() on a string normally it replaces the
\r with a
<br> as intended.
However, when called inside the renderer.text method it returns a different string than before.
Any ideas at what’s going on?
Thanks in advance.