HTML Table Math

by timeofmei
5
4
3
2
1
Score: 50/100

Description

Reviews

No reviews yet.

Stats

0
stars
54
downloads
0
forks
17
days
17
days
17
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
4
commits

Latest Version

17 days ago

Changelog

Fix directory scan warning

  • Use Obsidian's \createFragment\ helper instead of \document.createDocumentFragment\ (obsidianmd/prefer-create-el)

README file from

Github

HTML 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:

  1. Download main.js, manifest.json, and styles.css from the latest release.
  2. Copy them into your vault at <vault>/.obsidian/plugins/html-table-math/.
  3. Enable the plugin in Settings → Community plugins.

License

MIT