Emacs 31 ships experimental markdown-ts-mode built on tree-sitter
The newly released Emacs 31 includes a tree-sitter-based mode for editing Markdown files, called markdown-ts-mode, though it is not enabled by default and is labeled experimental. Despite that label, the mode already supports the full CommonMark spec and most of GitHub Flavored Markdown, plus extras like code block editing, table-of-contents tools, and integration with converters such as pandoc. Users must manually load the library, for example via use-package or autoload, since Emacs won't switch to it automatically when opening .md files.