iamcco / markdown-preview.nvim

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

Feature: Automatically switch mermaid theme if not defined in options #546

Closed dmitry-ilyashevich closed 1 year ago

dmitry-ilyashevich commented 1 year ago

Adding ability to automatically change theme in mermaid (between light and dark) depending on global theme, if not specified in mermaid options:

let g:mkdp_preview_options = {
    \ 'maid': { ... },
}

https://user-images.githubusercontent.com/37133/216698791-48c86873-112f-4b06-a59f-9aa3aa79fec8.mov