vipzhicheng / logseq-plugin-mark-map

This is a plugin for https://github.com/logseq/logseq to provide mindmap support based on https://github.com/markmap/markmap.
277 stars 4 forks source link

Displayed math only shows up from the 7th level #49

Closed fkguo closed 10 months ago

fkguo commented 1 year ago

Hello,

I find that the displayed math formulas show up in the map only from the 7th level, see the attached image: image where every "test" is followed by a hard line break and then the same displayed formula.

Is it possible to let the formulas show up at all levels?

Thank you!

vipzhicheng commented 1 year ago

Please upgrade, it maybe has been fixed now.

fkguo commented 1 year ago

Thanks! Now the math expressions between $$ $$ show up at all levels without truncation. Can the expressions in math environments like \begin{equation} ... \end{equation}, \begin{align} ... \end{align} also be rendered?

vipzhicheng commented 1 year ago

I'm afraid not. The upstream lib does not support this syntax. Seems Logseq does not support it either.

fkguo commented 1 year ago

Thanks. It is supported by LogSeq.

vipzhicheng commented 1 year ago

Can you please give me a raw example? Then I can paste it to Logseq to see what it looks like.

fkguo commented 1 year ago

for instance, you can put

\begin{equation}
f(z)=\sum_{n=0}^{\infty} a_n(z-z_0)^n ,
\end{equation}  

into logseq. It is properly rendered.

vipzhicheng commented 1 year ago

Yes, it's rendered. I am not familiar with this syntax. And upstream lib does not support it for sure. What I can do is to replace something with $$. e.g.

\begin{equation} to $$ \end{equation} to $$

I don't know if it is correct and if it is enough. I need your help to point me out.

fkguo commented 1 year ago

Thanks. Yes, it is enough for this environment. So you may consider the following: \begin{equation} to $$ \end{equation} to$$ \begin{align} to $$\begin{aligned} \end{align} to\end{aligned}$$

For most of the math equations, the above replacements should suffice.

vipzhicheng commented 1 year ago

Seems the last two are also not supported.

I have added the first two rules. Please have a try. A new option was added. You need to enable it first.