Skip to content

An Obsidian plugin to add better Live Preview support for math rendering inside callouts & blockquotes.

License

Notifications You must be signed in to change notification settings

RyotaUshio/obsidian-math-in-callout

Repository files navigation

Better Math in Callouts & Blockquotes

This is an Obsidian.md plugin to add better Live Preview support for math rendering inside callouts & blockquotes.

Note: The feature of this plugin was originally a part of LaTeX-like Theorem & Equation Referencer, another community plugin of mine. I completely rewrote it with a bunch of improvements and decided to release it as a separate plugin for better modularity.

Features

Math in Callouts

In Live Preview, the vanilla Obsidian does not render MathJax in callouts while editing them. This plugin solves this problem.

Moreover, it also enables proper handling of multi-line math blocks; see the next section below.

Example

Without this plugin With this plugin
Before After

Math in Blockquotes

In Live Preview, the vanilla Obsidian misunderstands a ">" symbol at the beginning of a line in a blockquote or a callout as an inequality sign ("greater than") in multi-line math blocks, while Reading View properly recognizes them. This plugin makes them consistent with Reading View.

Example

> $$
> \begin{align}
> a &= b \\
>   &= c
> \end{align}
> $$
Without this plugin With this plugin
Before After

Installation

You can find this plugin in the community plugin browser within Obsidian.

You can also install the latest beta release using BRAT.

  1. Install the latest version of BRAT and enable it.
  2. Open the following URL in browser: obsidian://brat?plugin=RyotaUshio/obsidian-math-in-callout.
  3. Click the "Add Plugin" button.
  4. (Optional but highly recommended) In the BRAT settings, turn on Auto-update plugins at startup at the top of the page.

Companion plugins

Here's a list of other math-related plugins I've developed:

Support development

If you find this plugin useful, please support my work by buying me a coffee!

Buy Me A Coffee

About

An Obsidian plugin to add better Live Preview support for math rendering inside callouts & blockquotes.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published