NicoNekoru / obsidan-advanced-table-xt

Plugin that adds features to tables in obsidian including merging, vertical headers, and custom css
Apache License 2.0
99 stars 5 forks source link

Issue with math #7

Closed ndharari closed 1 year ago

ndharari commented 1 year ago

When using math in a table, the inline math does not get rendered.

abiriadev commented 1 year ago

@ndharari Uninstall the plugin and reinstall it from the Obsidian community plugins.

Go to Settings -> Community plugins -> Browse, search for Sheets Extended, click install then enable. README

It will handle inline TeX properly.

https://github.com/NicoNekoru/obsidan-advanced-table-xt/blob/acdac5740a41f252c079b673a8258543e6d30f7d/src/main.ts#L67-L69

Ce1este commented 1 year ago

I'm having this problem too.

I've found that inline math fail to render (or only partially) when using markdown's native tables, while they render fine when using the sheet code block.

image


And I sometimes use the <br> syntax to make the text within a table line breaks, and this will not work when using the sheet code block.

I'm curious if there's a better way to accomplish this?

abiriadev commented 1 year ago

image image

It will handle inline TeX properly.

I guess I was wrong. It renders correctly on the initial load (e.g. 'Reload app without saving'), but not immediately after subsequent renders (by editing, or opening in a new tab, etc.).

image

This seems to be because the TeX is converted into a MathJax element after the first render.

abiriadev commented 1 year ago

I made a pull request for this: #9