iamcco / markdown-preview.nvim

markdown preview plugin for (neo)vim
MIT License
6.82k stars 284 forks source link

how to configure it to support rendering `\( a + b \)` as formula rather than plaintext? #687

Open redmouth opened 4 months ago

redmouth commented 4 months ago

how to configure it to support rendering \( a + b \) as formula rather than plaintext?

With following configuration

let g:mkdp_auto_start = 1
let g:mkdp_preview_options = {
\ 'mathjax': {
\   'inlineMath': [ ['$', '$'], ['\\(','\\)'] ],
\   'displayMath': [ ['\\[','\\]'] ],
\ }
\ }

\( a + b \) is not treated as math formula