MathToNotion

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

Δημιουργός
Ekalos
Ημερήσιες εγκαταστάσεις
0
Σύνολο εγκαταστάσεων
7
Βαθμολογίες
0 0 0
Έκδοση
1.9
Δημιουργήθηκε την
23/04/2026
Ενημερώθηκε την
29/05/2026
Μέγεθος
10 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.