ylc395 / joplin-plugin-better-markdown-viewer

Keep Cursor Synced Between Editor and MD Viewer
25 stars 1 forks source link

Katex math block support #5

Open amzon-ex opened 2 years ago

amzon-ex commented 2 years ago

Hi, thanks for making this excellent little tool.

It seems like this feature does not work with Katex blocks. Both the "mark active line" and "focus line in editor" features that is.

When the cursor is on the equation in the editor, the preceding paragraph gets highlighted. When double-clicking on the rendered Katex block in the viewer, the focus is shifted right to the beginning of the document, which is a little jarring, to be honest.

Is this a bug, or are Katex blocks not supported yet?

ylc395 commented 2 years ago

Katex / Table / Code blocks are not supported yet.

amzon-ex commented 2 years ago

Katex / Table / Code blocks are not supported yet.

I see. Do you plan to add support for these? It would be a great addition, in any case, considering

When double-clicking on the rendered Katex block in the viewer, the focus is shifted right to the beginning of the document, which is a little jarring, to be honest.

this behaviour, which often disrupts the flow of work.

ylc395 commented 2 years ago

When double-clicking on the rendered Katex block in the viewer, the focus is shifted right to the beginning of the document, which is a little jarring, to be honest.

Fixed in 2.0.5

amzon-ex commented 2 years ago

Fixed in 2.0.5

Excellent, thanks!

Btw, should this issue be kept open till math support arrives?

ylc395 commented 2 years ago

Feel free to keep this issue open.