Function: markdown-ts-mode-install-parsers

markdown-ts-mode-install-parsers is an interactive and byte-compiled function defined in markdown-ts-mode.el.gz.

Signature

(markdown-ts-mode-install-parsers ARG)

Documentation

Install markdown-ts-mode tree-sitter language parsers.

If needed, install the required parsers for markdown and markdown-inline. With a prefix argument, ARG, if needed, install parsers for html, yaml, and toml.

Probably introduced at or before Emacs version 32.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts-mode-install-parsers (arg)
  "Install `markdown-ts-mode' tree-sitter language parsers.
If needed, install the required parsers for `markdown' and `markdown-inline'.
With a prefix argument, ARG, if needed, install parsers for `html',
`yaml', and `toml'."
  (interactive "P")
  (unless (treesit-language-available-p 'markdown)
    (treesit-install-language-grammar 'markdown))
  (unless (treesit-language-available-p 'markdown-inline)
    (treesit-install-language-grammar 'markdown-inline))
  (when arg
    (unless (treesit-language-available-p 'html)
      (require 'html-ts-mode)
      (treesit-install-language-grammar 'html))
    (unless (treesit-language-available-p 'yaml)
      (require 'yaml-ts-mode)
      (treesit-install-language-grammar 'yaml))
    (unless (treesit-language-available-p 'toml)
      (require 'toml-ts-mode)
      (treesit-install-language-grammar 'toml))))