Skip to content

voidCounter/noeqtion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Noeqtion — LaTeX to Notion Math Converter

Get the Add-on

A browser extension that converts LaTeX-style equations to Notion's native math blocks. Notion still hasn't implemented automatic equation rendering for pasted text. If you've ever copied notes with mathematical equations into Notion, you know the pain. Those beautiful $E=mc^2$ expressions just sit there as plain text. This extension fixes that just with a keyboard shortcut.

Demo.mp4

See the extension in action converting LaTeX equations to Notion's native math blocks

Features

  • Automatic Conversion: Detects both inline ($...$) and block ($$...$$) equations.
  • Keyboard Shortcut: Convert all equations on the page with Ctrl+Alt+M (or use the extension popup).

That's it.

How to Use

  1. Install the extension in your browser
  2. Open a Notion page with LaTeX equations (like $O(n)$ or $$\int_0^\infty e^{-x^2}dx$$)
  3. Press Ctrl+Alt+M (or click the extension icon and hit "Convert")
  4. Watch your equations transform into Notion's native math format

Supported Browsers

  • Firefox: Fully tested and working
  • Chrome: Fully tested and working
  • Other Chromium-based browsers: Probably work, but not tested

Installation

For Firefox:

Get the Add-on

For Chrome:

  • Open chrome://extensions/
  • Enable "Developer mode"
  • Click "Load unpacked"
  • Select the extension folder

Technical Notes

The extension uses Notion's existing shortcuts and features to create math blocks. For display equations ($$...$$), it uses the /math command. For inline equations ($...$), it converts them to Notion's inline format by wrapping them as $$...$$.

To reduce visual distraction during conversion, the extension temporarily hides math dialogs using injected CSS. It processes equations sequentially, rescanning the DOM after each conversion to handle Notion's dynamic content updates.

The extension doesn't inject custom UI or modify Notion's core behavior. It automates what you'd do manually, just much faster.

Limitations

This extension works great for standard use cases. But there are some edge cases where it may not work as expected.

If you encounter issues with these or other scenarios, please open an issue with details about the specific context where the conversion failed.

License

Do whatever you want with this code. If it helps you, great. If you improve it, even better.

About

A browser extension that converts LaTeX-style equations to Notion's native math blocks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors