Math not highlighted with `==`

Steps to reproduce

  1. Open any text file in Obsidian.
  2. Type some text with a math equation (MathJax) somewhere in it.
  3. Surround the text with == to make it highlighted.

Example:

==Sample text $R^n$ Sample text $Sample \space math$ Sample text==

Expected result

The math equation is also highlighted.

Actual result

The math equation is not highlighted, stays the same.

Environment

  • Operating system: ParrotOS, Linux <hostname-removed> 5.14.0-9parrot1-amd64 #1 SMP Debian 5.14.9-9parrot1 (2021-10-26) x86_64 GNU/Linux
  • Debug info:
SYSTEM INFO:
	Obsidian version: v0.14.6
	Installer version: v0.14.6
	Operating system: #1 SMP Debian 5.14.9-9parrot1 (2021-10-26) 5.14.0-9parrot1-amd64
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Safe mode: off
	Plugins installed: 4
	Plugins enabled: 2
		1: Reading Time
		2: Recent Files

Additional information

The result doesn’t depend on mode (Live Preview or Reading)

Screenshot of example code:
Screenshot of example code

Supporting highlighting inside MathJax is of course crazy. But support for highlighting whole MathJax expressions seems like a reasonable possibility.

1 Like

thanks. Open a feature request for this.