New plugin: No More Flickering Inline Math

Hi all,

Let me share my new plugin No More Flickering Inline Math, which lets you work with inline math much more comfortably!

With this plugin, you will be no longer disturbed by the flickering inline math!

Turned OFF Turned ON
Turned OFF Turned ON

Thank you to those who shared their ideas on the forum!

Installation

It’s still under review by the Obsidian team, but you can install it using BRAT.
Please refer to README for installation instructions.

How does it work?

It’s simple. Obsidian doesn’t recognize $[space]...$ or $...[space]$ as a math.
So, when an inline math $...$ is found, this plugin inserts {} at the beginning and end of it:

${} ... {}$

These brackets are then hidden so that you are not disturbed by them.

Don’t like the bracket pollution? Don’t worry!
You can always safely clean up the brackets by running the following commands:

  • Clean up brackets in this note
  • Clean up brackets in all the opened notes

Related threads

5 Likes

FYI I believe appending the empty unicode character to the start and end of an equation also prevents flickering while being a bit less intrusive to the source code.

By empty unicode character I mean “Braille Pattern Blank” Obsidian seems to not consider it whitespace.