Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch client side markdown processing to remark #495

Merged
merged 1 commit into from
Aug 14, 2021
Merged

Conversation

jonatanklosko
Copy link
Member

Closes #488.

Initially we started with marked for markdown rendering as it still seems the most popular. As we started to need more customisation points it became quite tricky to get the rendering right. The referenced issue is related to the fact that we handle $ math separately from markdown parsing. I revisited the options based on the level flexibility we need, two other popular packages are remark and markdown-it, both of which support plugins. markdown-it doesn't support async highlighting and the katex plugin is far behind, but with remark neither of these is a problem. Also, remark is a part of a large ecosystem revolving around transforming AST with plugins and is very extendable. Given the plugin nature, setting it all up requires a few packages, but in the end it looks much cleaner as compared with the current setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The "$" character crash the Markdown session
2 participants