Greasy Fork is available in English.

MathToNotion

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

作者
Ekalos
今日安裝
0
安裝總數
7
評價
0 0 0
版本
1.9
建立日期
2026-04-23
更新日期
2026-05-29
尺寸
10.1 KB
授權條款
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.