You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Right now, the default blocks provide useful support for text editing. However, there is a limitation in the editor's versatility: it lacks a dedicated block for inputting equations. This makes it difficult for users who need to include mathematical expressions and equations in their documents, similar to the functionality available in Notion. The current options do not support a seamless way to input and display LaTeX equations within the text editor, which is a significant drawback for users in academia, research, or any field that requires mathematical documentation.
Describe the solution you'd like
I would like to have a custom block that allows users to input equations directly into the editor. This block should support LaTeX formatting so that users can type LaTeX code and have it rendered properly as mathematical notation within the document. Ideally, this block would function similarly to Notion's equation input feature, providing a user-friendly interface for entering and editing equations.
Describe alternatives you've considered
Building a block that directly converts the text input into LaTeX code. This approach would allow users to type their equations as plain text and have it automatically converted to LaTeX for rendering.
Implementing a text field that appears from a dropdown menu in the block selection options. Users could input LaTeX code into this field, and it would render the equation in the current editing location.
Additional context
Adding this feature would greatly enhance the usability of the text editor for users who need to include complex mathematical expressions in their documents. It would make the editor more versatile and user-friendly, especially for those in scientific and technical fields.
Problem: As noted, the lack of a dedicated equation block is a significant gap for users who need to include mathematical notation in their documents. The current text blocks don't support seamless LaTeX input and rendering.
Solution: Implementing a block similar to the example in the attached screenshot would be ideal. This would allow users to input and edit LaTeX code directly within the editor, with the equation rendering cleanly in the document. This would bring BlockNote on par with other modern editors (like Notion) and make it much more usable for a wider audience, including academics, engineers, and scientists.
Activity
YousefED commentedon May 28, 2024
This would be great! It should be possible with Custom Inline Content (https://www.blocknotejs.org/docs/custom-schemas/custom-inline-content), although it might need custom prosemirror handling, not sure.
It's not on our roadmap atm, but I'd definitely welcome a PR for this!
b4s36t4 commentedon May 28, 2024
/attempt #741
Rust
jkcs commentedon Jun 6, 2024
Maybe I can give this a try?
Navong commentedon Jun 6, 2024
katex_demo.mp4
I customized Custom Block using sample of Formatting Toolbar.
algora-pbc commentedon Jul 19, 2024
💡 @jkcs submitted a pull request that claims the bounty. You can visit your bounty board to reward.
Recxsmacx commentedon Feb 24, 2025
/attempt #741
Options
breno-ribeiro706 commentedon Apr 23, 2025
is still open?
Kartikayy007 commentedon May 25, 2025
/attempt #741
bgreenlee commentedon Aug 25, 2025
There is a Tiptap extension, but it requires Tiptap 3.x: https://tiptap.dev/docs/editor/extensions/nodes/mathematics
Excellencedev commentedon Sep 19, 2025
/attempt #741
YousefED commentedon Sep 26, 2025
fyi, we're removing the bounty for now. Sorry about this (see #2019 (comment))
ArihantBapna commentedon Sep 26, 2025
@YousefED just fyi: #1987 (comment) this may be useful to this
MetaMmodern commentedon Dec 20, 2025
@bgreenlee Support for Tiptap v3 was added in v0.39.0. Anybody want to give it a shot?
kaunteyaarjun commentedon Dec 31, 2025
Subject: Ready for Review - Full Implementation with KaTeX & Error Handling
Hi! I have implemented the Custom Math Block as requested.
I created a complete demo project that satisfies all requirements:
Custom Schema: Implemented using createReactBlockSpec with a "math" block type.
KaTeX Integration: Renders equations in display mode with built-in error handling (graceful fallbacks for invalid LaTeX).
Editor Instantiation: Includes a full demo (App.tsx) showing the editor initialization and sample equations (Einstein, Quadratic, Matrix, etc.).
🔗 Project Repository & Demo: https://github.com/kaunteyaarjun/blocknote-katex-block
Key Features:
Production Ready: Fully typed with TypeScript.
Error Safe: If a user types invalid LaTeX, the block catches the error instead of crashing the editor.
Visual Style: Clean, Notion-like interface with click-to-edit functionality.
I am ready to open a PR to merge this into the main codebase. Let me know if you'd like me to proceed!
thecafetron-ctrl commentedon Feb 7, 2026
/attempt
AleAnee commentedon Feb 18, 2026
/attempt #2019
rpgamer9 commentedon Feb 20, 2026
Problem: As noted, the lack of a dedicated equation block is a significant gap for users who need to include mathematical notation in their documents. The current text blocks don't support seamless LaTeX input and rendering.
Solution: Implementing a block similar to the example in the attached screenshot would be ideal. This would allow users to input and edit LaTeX code directly within the editor, with the equation rendering cleanly in the document. This would bring BlockNote on par with other modern editors (like Notion) and make it much more usable for a wider audience, including academics, engineers, and scientists.