mjbvz / vscode-markdown-mermaid

Adds Mermaid diagram and flowchart support to VS Code's builtin markdown preview
https://marketplace.visualstudio.com/items?itemName=bierner.markdown-mermaid
MIT License
640 stars 115 forks source link

Add preferences for default light/dark mode themes #142

Closed Reisse closed 2 years ago

Reisse commented 2 years ago

Hi! This is an attempt at implementing #65.

Preferences are injected into rendered Markdown page by markdown-it plugin, as configuration API is not directly accessible from the webview. For now, only Mermaid theme is configurable. If this approach looks OK for you, more preferences may be added in the future.

Required VS Code version bumped accordingly for configuration API.

mjbvz commented 2 years ago

Thank you! Will publish update with the fix shortly