iamcco/markdown-preview.nvim

About the configuatio of katex

Open

#37 opened on Mar 23, 2019

View on GitHub
 (5 comments) (0 reactions) (0 assignees)JavaScript (246 forks)batch import
help wanted

Repository metrics

Stars
 (5,538 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

It seems that katex not support equation environment, and the solution given here not work for markdown-preview when I set it as:

let g:mkdp_preview_options = {
			\ 'katex': {
			\ delimiters: [
			\ {left: "$$", right: "$$", display: true},
			\ {left: "\\(", right: "\\)", display: false},
			\ {left: "\\[", right: "\\]", display: true},
			\ {left: "\\begin{equation}", right: "\\end{equation}", display: true}
			\ ]
 }

I guess the only option support is given in the doc of katex: https://katex.org/docs/options.html. But did there any way to use the delimiters as an option?

Contributor guide