Variable: markdown-ts-view-mode-pre-init-hook
markdown-ts-view-mode-pre-init-hook is a customizable variable defined
in markdown-ts-mode.el.gz.
Value
(markdown-ts-add-final-newline)
Documentation
Hooks run before `markdown-ts-view-mode` initialization.
Functions on this list are intended to amend buffer content for
markdown-ts-view-mode and tree-sitter Markdown grammar compatibility.
For example, markdown-ts-add-final-newline ensures the grammar
correctly parses markup at the end of the buffer that depends on a final
newline.
This variable was added, or its default value changed, in unknown version unknown.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/markdown-ts-mode.el.gz
(defcustom markdown-ts-view-mode-pre-init-hook (list #'markdown-ts-add-final-newline)
"Hooks run before `markdown-ts-view-mode` initialization.
Functions on this list are intended to amend buffer content for
`markdown-ts-view-mode' and tree-sitter Markdown grammar compatibility.
For example, `markdown-ts-add-final-newline' ensures the grammar
correctly parses markup at the end of the buffer that depends on a final
newline."
:type '(hook)
:version "31.1"
:package-version "1.0")