chie icon indicating copy to clipboard operation
chie copied to clipboard

Use tree-sitter to render markdown and highlight code

Open zcbenz opened this issue 2 years ago • 0 comments

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.

zcbenz avatar Jul 20 '23 09:07 zcbenz