Closed mcpeixoto closed 1 year ago
Hi @mcpeixoto,
The block / callout problem should be fixed in the next release, see #40. About your image problem: I cant find a image in your provided source code, so I cant reproduce this. This is how your source looks in version 1.5.1
which seems more or less correct for me, about the latex blocks I would need to check if there is an option to enable this but I dont think I will support any plugins in Perlite.
I took a look at the not renderd latex formel and I found the reason was related to the color switch, from Katex
In early versions of both KaTeX (<0.8.0) and MathJax, the \color function expected the content to be a function argument, as in \color{blue}{hello}. In current KaTeX, \color is a switch, as in \color{blue} hello. This matches LaTeX behavior. If you want the old \color behavior, set option colorIsTextColor to true.
This means that you need to use the current color switch, so the block from above should look like this
$$f (1 . . . 0) = ({\color{orange}s_1} ∧ 1) ⊕ · · · ⊕ (sn ∧ 0) = {\color{orange}s_1}$$
$$\dots$$
$$f (0 . . . 1) = (s1 ∧ 0) ⊕ · · · ⊕ ({\color{orange} s_n} ∧ 1) = {\color{orange}s_n}$$
Then Perlite (Katex) will render this correct:
Hello, I just uploaded my notes to my Perlite website and I'm having some issues rendering math.
For example
Vs how it appears in obsidian locally
I believe the boxes are from a plugin I have installed but why do the equations and image aren't rendering correctly? Also, is there a way to make my locally installed plugins work on the website? Thanks in advance!
Source code: