Skip to content

Detect raw math#225

Merged
kepano merged 2 commits intomainfrom
math/detect-raw-math
Apr 5, 2026
Merged

Detect raw math#225
kepano merged 2 commits intomainfrom
math/detect-raw-math

Conversation

@kepano
Copy link
Copy Markdown
Owner

@kepano kepano commented Apr 5, 2026

  • Detect raw LaTeX math delimiters in text nodes when MathJax or KaTeX is configured but hasn't rendered (no JS execution)
  • Supports $...$, $$...$$, \(...\), and \[...\] delimiters
  • Wraps matched expressions in <math data-latex="..."> elements so the existing math pipeline processes them

Fixes #224

@kepano kepano merged commit 627ef16 into main Apr 5, 2026
@Azeirah
Copy link
Copy Markdown

Azeirah commented Apr 6, 2026

Oh wow! I was testing this just last week and found that reMarkable's "send to reMarkable" doesn't render LaTeX. That Mozilla's "render in reading mode" doesn't render LaTeX either. And defuddle didn't work either. That was for my own Obsidian-quartz hosted blog.

Worth rerunning my test then!

Love it! <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Raw LaTeX math delimiters mangled by markdown escaping

2 participants