artisticat1 / obsidian-tikzjax

Render LaTeX and TikZ diagrams in your notes
MIT License
356 stars 18 forks source link

(Question) Is color inversion done via script or style? #38

Open expikr opened 1 year ago

expikr commented 1 year ago

I'm contemplating the possibility of an mdbook preprocessor feeding inputs to tikzjax during compile time to generate static svg outputs (https://github.com/lzanini/mdbook-katex/issues/83).

Is the generated svg output's adaptive color inversion changed via css rules or is it a clientside javascript action? MdBook has many different themes to choose from, some light and some dark, and it would be best if the "default ink color" always matches that of the body-text rather than just black/white or background-invert.

schang412 commented 1 year ago

It is handle in the javascript code: https://github.com/artisticat1/obsidian-tikzjax/blob/dec4be57ea0b42a3a97177a670101d8d05571379/main.ts#LL137C1-L146C3

mayurankv commented 4 months ago

Can this be closed now?