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

feat(ui): changed Markdown rendering library #520

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

loss-and-quick
Copy link

Changes:

  • Markdown Render Library Change: Switched to react-markdown for improved reliability and enhanced capabilities.
  • Block Code Syntax Highlighting: Implemented basic highlighting using rehype-highlight for better user experience.

Rationale:

The original Markdown rendering library, markdown-to-jsx, buggy and for now unsuitable for project's needs.
Some of the most critical issues include:

Benefits:

  • Enhanced Stability: react-markdown provides a more stable and reliable rendering solution.
  • Extensibility: react-markdown supports a wide range of plugins out of the box, allowing for future enhancements and customizations.

- Markdown render library changed to [react-markdown](https://github.com/remarkjs/react-markdown)
- Added basic hightling via [rehype-highlight](https://github.com/rehypejs/rehype-highlight)

Signed-off-by: minicx <[email protected]>
@sainadh-d
Copy link

@loss-and-quick You need remark-gfm, to render tables etc.
See remarkjs/react-markdown#526, https://github.com/remarkjs/react-markdown#use

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.

2 participants