HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
benrbray
prosemirror-math
TypeScript2020–2024
benrbray / prosemirror-math

prosemirror-math

Schema and plugins for "first-class" math support in ProseMirror!

2Distinct people
8Mentions
1Explicit recommenders
303GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Schema and plugins for "first-class" math support in ProseMirror!

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

ProseMirror [1] has (mostly) solved that problem in the browser with an excellent transaction-based wrapper around contenteditable! I highly recommend checking it out. I'm also…

benrbray used a recommendation phrase. One indexed comment matches. This is a phrase match, not a verdict.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year8 dated mentions

Observed mentions: 2020-06-13 19:01:56 UTC to 2024-07-02 19:37:34 UTC.

02462020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 7 mentions; 0 submissions, 7 comments20202021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments20222023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2024

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC707
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC000
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC000
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC000
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC101

What Hacker News says

8 sources
benrbray·Sep 17, 2020Recommendation phrase
ProseMirror [1] has (mostly) solved that problem in the browser with an excellent transaction-based wrapper around contenteditable! I highly recommend checking it out. I'm also the author of a WYSIWYG math plugin for ProseMirror [2]. For me, WYSIWYG is essential, since my notes contain a lot of math, and I don't want to stare at LaTeX source all day. For that reason, stopped using Overleaf in favor of Typora [1] for a while, but grew out of it as my note-base became large enough to need a good wikilink system. Quarantine gave me enough free time to build my own note-taking app [3]. So, these days, when I get frustrated with my note-taking app, I have only myself to blame :) [1] https://prosemirror.net/ [2] https://github.com/benrbray/prosemirror-math [3] https://noteworthy.ink/
In Athens an open source Roam alternative
Please add math support, too! KaTeX is a great drop-in option! If you do, please consider "first-class" math support, like the screencaps here [1]. Both block and inline math are important, and it's important to be able to quickly add/edit math nodes. Another good option is to show the math source $\int_a^b f(x) dx$ while editing, and render it after the user commits a cell, much like Jupyter notebooks. [1] https://github.com/benrbray/prosemirror-math
In An Iterative Approach to Notes
Not who you were replying to, but: * Most of my notes relate to a single blog post / article / paper that I read. * In my notes, I jot down any new concepts I learned, and summarize them in a way I know I will be able to understand later. * I'm very forgetful, so it helps to have this type of "condensed" representation so I can go back and review in six months when I inevitably forget what I learned. * It's even better if my note-taking software can help me find old notes that I may have forgotten about. This is where tags and bidirectional links come in handy. * My notes contain a lot of math, which is why I can't just use a plain text editor. The side-by-side style some editors use (like the VS Code Markdown Preview) is also suboptimal, because it wastes screen space -- normally I want half my screen to be notes, the other half to be
Read the rest
a pdf). So far, Typora is the only software I've used that gets math editing right. But I'm slowly working to fix that! [1,2] [1] https://github.com/benrbray/prosemirror-math [2] https://benrbray.com/static/prosemirror-math/index.html (only tested in chrome)
In An Iterative Approach to Notes
Yes, please do! My job involves a lot of math, so it a dealbreaker for me when notetaking software doesn't have math support. These days it's very easy to include! The easiest way is to use KaTeX [1] to render math between dollar sign tags for inline math like this $x+y=5$ and for display math like this: $$ \int_a^b f(x) dx $$ Many markdown parsers (like markdown-it) have plugins for math support. In the future, I would also heavily recommend looking into using ProseMirror [2] for wysiwyg Markdown editing. (I'm currently working on adding wysiwyg math editing to ProseMirror -- see the gifs here [3] for an early proof of concept). [1] https://katex.org/ [2] https://prosemirror.net/ [3] https://github.com/benrbray/prosemirror-math
In Show HN: Collected Notes – A note-taking blogging app I made
Normally there are two types of math: inline and block. Inline math is delimited with single dollar signs like $x+y=5$, while display math uses two dollar signs with newlines, like $$ \int_a^b f'(x) dx = f(b)-f(a) $$ You can find some GIFs of the ideal behavior here [1], but it's understandable that such a thing might not be a priority for most users. The next best thing would definitely be a popup! A natural toggle button would be $, though it may make more sense to only insert math on a quick double-tap of $, so users can still write about money :). Assigning it to CTRL+4 or similar might also be a good compromise. [1]: https://github.com/benrbray/prosemirror-math
In Show HN: Code Notes – A Gatsby theme for publishing code-related notes

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.