xyhp915 / logseq-fenced-code-plus

A Logseq plugin for missing types of fenced code 🚀
MIT License
107 stars 17 forks source link

Diagrams look weird in light theme #33

Open bitbonk opened 1 year ago

bitbonk commented 1 year ago

As shown in the below example, mermaid diagrams look weird in light theme.

image

Of course I could force the the mermaid theme to light using %%{init: {'theme':'default'}}%% but then it will look weird in Logseq's dark theme.

I use the setting of Logseq to use the theme of the OS, and the OS switches the same according to the time of the day. Which is means I use both the light and the dark theme of Logseq.

image

This is my feature request: Please respect both the light and dark theme of Logseq dynamically if the mermaid code does not contain %% a directive to force a theme.