Switch to different markdown preview renderer #1574
Labels
good first issue
A default GitHub label inviting first time contributors
help wanted
A default GitHub label inviting outside help
javascript
Pull requests that update Javascript code
stage: up for grabs
type: bug
Needs fix
type: ux
Problem and impact
We're using marked.js to render Markdown previews. However, marked.js can only support all of or none of GitHub flavoured Markdown. Our Python implementation, however, isn't GHF, but still supports line breaks (via the nl2br extension). Marked.js has to turn on full GitHub compatibility to support line breaks, which will also e.g. turn on lists working without an empty line beforehand.
Expected behaviour
Preview and actual rendering work the same.
Steps to reproduce
Test text:
Other inconsistencies
The frontend renderer also supportsFixed by 98448c1strikethroughs, whereas the backend renderer doesn't.The text was updated successfully, but these errors were encountered: