MathToNotion

Automatically replaces $...$ and $$...$$ with Notion inline equations

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Аўтар
Ekalos
Усталяванняў за дзень
0
Усяго ўсталяванняў
7
Рэйтынг
0 0 0
Версія
1.9
Створаны
23.04.2026
Абноўлены
29.05.2026
Памер
10.1 КБ
Ліцэнзія
MIT
Ужываецца на

Notion $...$ Equation Guide

A robust Tampermonkey script designed to convert text-based $math$ or $$math$$ delimiters into native Notion equation nodes. Ideal for processing content pasted from Typora, Obsidian, or ChatGPT.

✨ Key Features

  • Multiline Support: Recognizes not only single-line $ ... $ but also complex $$ ... $$ blocks that span multiple lines (created via Shift+Enter).
  • Atomic Replacement: Prevents character residue and DOM errors by stripping delimiters and re-selecting content in one atomic operation, bypassing Notion's React re-rendering issues.
  • Smart Guided Workflow:
    • Auto-Focus: Automatically highlights the formula and scrolls it to the center of the screen.
    • Auto-Advance: Once you trigger the conversion, the script automatically clicks "Done" and moves to the next formula instantly.

🛠 Recommended Companion

For the ultimate "Copy-Paste-Convert" workflow, it is highly recommended to use this script alongside:

  • Copy MD Latex: This tool ensures LaTeX content is copied with the correct $ delimiters from various sources, making it ready for this script to process.

🔗 References

  • This project is inspired by and references the logic from the GitHub repository: deepanshut041/notion-inline-equation.
  • This Tampermonkey version includes specific stability fixes for Notion's asynchronous rendering and extends support to multiline $$ equations.

📖 Usage Guide

  1. Start the Script: Click the Tampermonkey icon and select "🚀 Start Universal Conversion ($/$$/Multi)".
  2. Trigger Conversion: Once the code is highlighted by the script, press the native Notion shortcut:
    • Windows/Linux: Ctrl + Shift + E
    • macOS: Cmd + Shift + E
  3. Auto-Advance: The script detects the equation dialog, clicks Done, and immediately jumps to the next formula.
  4. Controls: Press the Esc key to exit the guide mode at any time.

⚠️ Notes

  • Display Style: Notion shortcuts always create "Inline Equation" nodes. To make $$ formulas appear as centered blocks, it is recommended to add \displaystyle at the beginning of your LaTeX code.
  • Code Block Protection: The script safely ignores any text inside Code Blocks to prevent accidental conversion.