README file from
GithubHTML Table Math
Render LaTeX math inside raw HTML table cells for Obsidian.
Obsidian renders $...$ math in regular markdown, but not inside raw HTML tables. This plugin fills that gap: math in <table> cells is rendered with MathJax in both Reading View and Live Preview.
Usage
Write math as you normally would, inside the td / th cells of a raw HTML table:
<table>
<tr>
<th>Notation</th>
<th>Meaning</th>
</tr>
<tr>
<td>$\operatorname{span}(\mathbf{x})$</td>
<td>$$E = mc^2$$</td>
</tr>
</table>
Supported delimiters (matching Obsidian's own math):
$ ... $— inline math$$ ... $$— display math\$— a literal dollar sign
Everything else in the cell — plain text, escaped $, unbalanced $ — is left exactly as-is.
Settings
| Setting | Description |
|---|---|
| Enable rendering | Master switch for the plugin. |
| Live Preview | Whether math is rendered in Live Preview as well as Reading View. |
| On render error | What to show when a formula fails to render: keep the raw LaTeX, or MathJax's error output. |
Changes to the settings apply immediately to already-open notes — no reload required.
Requirements
- Obsidian 1.13.0 or newer (uses the declarative settings API)
Installation
Install from the community plugin catalog in Obsidian, or manually:
- Download
main.js,manifest.json, andstyles.cssfrom the latest release. - Copy them into your vault at
<vault>/.obsidian/plugins/html-table-math/. - Enable the plugin in Settings → Community plugins.
License
MIT