The big advantage you get with Treesitter is that it’s trivially easy to add all the other niceties to Markdown. Parsing Markdown itself is relatively simple, it’s the syntax highlighting for the blocks of code and Latex that will get you. Either you have to forgo all of that and content yourself with reading code as plain text or you’ll have to undertake the heroic project of writing your own incremental parser for all of those languages.

Reply to this note

Please Login to reply.

Discussion

No replies yet.