MathToNotion

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

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

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

Tendrás que instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Tendrás que instalar una extensión como Tampermonkey antes de poder instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

Autor
Ekalos
Instalaciones diarias
0
Instalaciones totales
7
Calificaciones
0 0 0
Versión
1.9
Creado
23/04/2026
Actualizado
29/05/2026
Tamaño
10.1 KB
Licencia
MIT
Funciona en

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.