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

Add option to use treesit for markdown-mode #791

Open
CeleritasCelery opened this issue Aug 10, 2023 · 1 comment
Open

Add option to use treesit for markdown-mode #791

CeleritasCelery opened this issue Aug 10, 2023 · 1 comment

Comments

@CeleritasCelery
Copy link

As you well know, Emacs 29 is now shipping with tree-sitter support. There is a tree-sitter grammar for markdown that implements the CommonMark Spec. It could potentially be used as backend for markdown-mode. It is already used by neovim and helix.

@milanglacier
Copy link

As also a neovim user, I would say the treesitter parser of markdown is still far from maturity, at least for the syntax highlight the treesitter neovim is worse than the pandoc-syntax.

While there are no obstacles for adding treesit support for markdown-mode, but I would say the cost is higher than the pay for the current markdown parser, as I can foresee that the current one would still provide better font-locking.

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

No branches or pull requests

2 participants