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

Use tree-sitter to render markdown and highlight code #3

Open
zcbenz opened this issue Jul 20, 2023 · 0 comments
Open

Use tree-sitter to render markdown and highlight code #3

zcbenz opened this issue Jul 20, 2023 · 0 comments

Comments

@zcbenz
Copy link
Contributor

zcbenz commented Jul 20, 2023

Currently marked and highlight.js are used to render markdown and highlight code, while they are great libraries and very good performance, they don't support streaming input. So currently when the streaming conversation is rendered the implementation is just re-rendering everything every time when a new character is received.

The tree-sitter is very good at this use case and we should switch to it for parsing.

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

No branches or pull requests

1 participant