Function: markdown-ts--range-settings

markdown-ts--range-settings is a byte-compiled function defined in markdown-ts-mode.el.gz.

Signature

(markdown-ts--range-settings)

Documentation

Return range settings for markdown-ts-mode.

Source Code

;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defun markdown-ts--range-settings ()
  "Return range settings for `markdown-ts-mode'."
  (apply
   #'treesit-range-rules
   `( :embed markdown-inline
      :host markdown
      :local t
     ((inline) @markdown-inline)
     ,@(when markdown-ts-fontify-code-blocks-natively
         '( :embed markdown-ts--code-block-ts-language
            :host markdown
            :local t
            ((fenced_code_block (info_string (language) @language)
                                (code_fence_content) @content)))))))