Converting Equations
There are two ways to trigger the conversion process:Keyboard Shortcut
Press
Ctrl+Alt+M anywhere on a Notion pageExtension Popup
Click the extension icon and press the “Convert” button
Equation Formats
Noeqtion supports two types of LaTeX equations:Inline Equations
Inline equations are wrapped in single dollar signs and appear within text:Inline equations are converted to Notion’s inline math format using double dollar signs ().
Display Equations
Display equations are wrapped in double dollar signs and appear as block-level elements:Display equations are converted to Notion’s
/math block with the LaTeX content automatically populated.How Conversion Works
Detection
The extension scans the page for text nodes matching the equation regex pattern:This pattern matches both inline (
$...$) and display ($$...$$) equations.Sequential Processing
Equations are processed one at a time to ensure stability. After each conversion, the DOM is rescanned to find remaining equations.
Sequential processing prevents conflicts and ensures accurate conversion even on pages with many equations.
Text Selection
For each equation found, the extension:
- Locates the editable parent element with
data-content-editable-leaf="true" - Clicks to focus the block
- Selects the exact equation text using the DOM Range API
Conversion
Based on the equation type:For inline equations:
- The selected text is replaced with
$$latexContent$$ - Notion automatically renders this as an inline math element
- The selected text is deleted
- The
/mathcommand is inserted - Enter is pressed to create the math block
- The LaTeX content is inserted into the math block input
- The “Done” button is clicked (or Escape if there’s an error)
Visual Behavior
During conversion, Noeqtion temporarily hides UI elements to reduce visual distraction:Timing Configuration
The extension uses carefully tuned delays to work with Notion’s UI:Focus Delay (50ms)
Focus Delay (50ms)
Wait time after focusing an editable block so Notion registers the focus.
Quick Delay (20ms)
Quick Delay (20ms)
Short pause for UI updates between small operations like select/delete/insertText.
Dialog Delay (100ms)
Dialog Delay (100ms)
Wait for dialogs and inputs to appear (display equations only).
Math Block Delay (100ms)
Math Block Delay (100ms)
Extra time for the math block to fully initialize (display equations only).
Post-Convert Delay (300ms)
Post-Convert Delay (300ms)
Wait after conversion for Notion to update the DOM before rescanning.
Best Practices
Single Page at a Time
Work on one Notion page at a time for best results
Wait for Completion
Let the conversion process finish before editing the page
Valid LaTeX
Ensure your LaTeX syntax is valid before conversion
Save First
Save your work before converting in case you need to undo
Example Workflow
Here’s a typical workflow for converting a page with multiple equations:- Paste or type your content with LaTeX equations in Notion
- Press
Ctrl+Alt+Mto start the conversion - Watch as equations are converted one by one
- Review the converted math blocks
- Edit any equations that need adjustment using Notion’s native math editor
What Gets Converted
The extension converts:- ✅ Inline equations:
$x^2 + y^2 = z^2$ - ✅ Display equations:
$$\sum_{i=1}^{n} i = \frac{n(n+1)}{2}$$ - ✅ Multi-line display equations with
\\line breaks - ✅ Complex nested structures like fractions, matrices, and integrals
- ❌ Equations already in Notion’s math block format
- ❌ Code blocks containing dollar signs
- ❌ Dollar amounts (e.g., 50.00) - these don’t match the regex pattern
Error Handling
If a KaTeX error is detected in the math dialog, the extension automatically closes the dialog with Escape and continues to the next equation.