MathToNotion

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

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey, Greasemonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да инсталирате разширение, като например Tampermonkey .

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Violentmonkey.

За да инсталирате този скрипт, трябва да имате инсталирано разширение като Tampermonkey или Userscripts.

За да инсталирате скрипта, трябва да инсталирате разширение като Tampermonkey.

За да инсталирате този скрипт, трябва да имате инсталиран скриптов мениджър.

(Вече имам скриптов мениджър, искам да го инсталирам!)

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да инсталирате разширение като Stylus.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

За да инсталирате този стил, трябва да имате инсталиран мениджър на потребителски стилове.

(Вече имам инсталиран мениджър на стиловете, искам да го инсталирам!)

Автор
Ekalos
Инсталации дневно
0
Инсталации общо
7
Рейтинг
0 0 0
Версия
1.9
Създаден
23.04.2026
Обновен
29.05.2026
Размер
10 КБ
Лиценз
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.