Emacs 31 has been released, introducing several new features, including an experimental markdown-ts-mode. This mode is not automatically active upon installation, requiring users to opt-in for its functionality. Despite its experimental label, the mode is described as feature-rich.
The markdown-ts-mode covers the CommonMark specification and most of the GitHub Flavored Markdown (GFM) specification. It also includes additional features such as code blocks for non-tree-sitter modes (like elisp), table of contents utilities, and interfaces with external converters such as Pandoc and GFM.
Since markdown-ts-mode is experimental, Emacs does not enable it by default. Users must explicitly load the library. The guide provides two methods for activation: using the `use-package` system for configuration management or a more direct `autoload` approach for those who do not use `use-package`.
For `use-package` users, the suggested setup involves adding a `use-package` block to the Emacs initialization file, specifying `markdown-ts-mode` and requiring `markdown-ts-mode-x` for extra functionalities. For users without `use-package`, instructions include using `autoload` and `add-to-list` to associate Markdown file extensions with the mode, followed by requiring `markdown-ts-mode-x`.
The guide also offers a method to test markdown-ts-mode without altering a user's primary Emacs configuration. This involves saving the provided configuration snippets into a temporary `.el` file and launching Emacs with the `-Q --load` command-line options to load the temporary file in a bare Emacs session.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Emacs 31 includes an experimental markdown-ts-mode, which is not enabled by default. This guide provides instructions for users to activate and configure this feature-rich mode, which supports CommonMark and GitHub Flavored Markdown specifications.