Common Issues
Extension Not Working
Content Script Not Loading
Content Script Not Loading
Symptoms:If you don’t see this message, the content script isn’t loading.Solutions:
- Keyboard shortcut doesn’t respond
- Extension popup does nothing
- No console logs from the extension
Verify Page URL
The extension only works on
https://www.notion.so/* pages. Check that your URL matches this pattern:Equations Not Detected
Equations Not Detected
Symptoms:This pattern matches:
- Shortcut triggers but nothing happens
- Console shows “No equations found”
- Inline:
$equation$(no newlines allowed) - Display:
$$equation$$(newlines allowed)
- ❌ Dollar amounts:
$100(missing closing$) - ❌ Inline with newlines:
$x\n y$(newlines not allowed in inline) - ❌ Triple dollars:
$$$equation$$$(not a valid pattern) - ❌ Already converted: Equations in Notion’s math blocks
- Verify your LaTeX uses exactly one or two dollar signs on each side
- Keep inline equations on a single line
- Check that equations aren’t already converted
Partial Conversions
Partial Conversions
Symptoms:Solutions:
- Some equations convert, others don’t
- Conversion stops midway
Verify LaTeX Syntax
Invalid LaTeX causes KaTeX errors. The extension detects errors via:If an error is detected, the dialog is closed and the equation is skipped.
Check Editable Blocks
Equations must be in editable blocks with the attribute:Equations in non-editable areas (headers, locked blocks) will be skipped.
Timing Issues
Noeqtion uses carefully calibrated delays to work with Notion’s UI. If conversions are inconsistent, timing might be the issue.Current Timing Configuration
Symptoms of Timing Issues
- Selection fails intermittently
- Math dialog doesn’t open
- LaTeX content not inserted correctly
- Conversion works on second attempt but not first
Solutions
Recommended adjustments for slow systems:Display Equation Issues
Done Button Not Found
Done Button Not Found
Math Block Input Not Found
Math Block Input Not Found
Symptoms:Solutions:
- Display equation creates empty math block
- LaTeX content not inserted
- Check console for the warning message
- Increase
TIMING.MATH_BLOCKdelay - Verify that Notion’s math dialog structure hasn’t changed
Inline Equation Issues
Inline equations use a simpler conversion process - they directly replace selected text with
$$latexContent$$ and let Notion handle the rendering.Inline Conversion Logic
- If selection fails, the equation is skipped
- If the text doesn’t match exactly, selection verification fails
DOM Structure Issues
Critical DOM Dependencies
-
Editable blocks must have:
-
Math dialog is detected by:
-
Error alerts are detected by:
- Done button must contain text “Done”
Browser Compatibility
The extension supports both Chrome and Firefox:Chrome/Edge
- Uses
chromeAPI - Manifest V3
- Requires
activeTabandscriptingpermissions
Firefox
- Uses
browserAPI - May require manifest adjustments for full compatibility
Debugging Tips
Enable Console Logging
Open the browser console (F12) before converting. The extension logs:
- Script load confirmation
- Equation detection results
- Warnings for failed conversions
- Errors with stack traces
Test Single Equations
Try converting a single simple equation first:If this works, the issue is likely with complex LaTeX syntax.
Check Selection
The extension verifies selection:If this warning appears, there’s a mismatch between detected and selected text.
Error Messages Reference
| Console Message | Cause | Solution |
|---|---|---|
Could not find equation text in node | Regex matched but exact text not found | Check for special characters or encoding issues |
Could not find editable parent | Equation not in editable block | Move equation to an editable text block |
Selection failed or doesn't match | Text selection didn’t match equation | Check for whitespace or hidden characters |
KaTeX error detected | Invalid LaTeX syntax | Verify LaTeX is valid; check Notion’s math editor |
Could not find math block input | Math dialog input element not found | Increase MATH_BLOCK timing delay |
No text selected for inline equation | Selection collapsed before conversion | Timing issue; try increasing QUICK delay |
Performance Considerations
The extension processes equations sequentially, which is slower but more reliable than parallel processing.
Why Sequential Processing?
- Prevents race conditions
- Allows DOM to update between conversions
- Ensures accurate rescanning
- Works reliably with Notion’s async UI updates
Getting Help
If you’re still experiencing issues:- Check the browser console for error messages
- Verify you’re using the latest version of the extension
- Test on a fresh Notion page with a simple equation
- Report the issue with:
- Browser version
- Notion page structure
- Example LaTeX that fails
- Console logs/errors