Lurker News
Back to discussion

Comment by benrbray

benrbray3 replies#
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

alecrosa1 reply#
Sold. I’ll take a look.
rhezab1 reply#
Awesome! FWIW I currently use a clone [1] of Andy's notes website [2], to which I've added KaTeX support. The biggest feature is the Roam-style bidirectional linking. But your system is sufficiently simpler that I think I'll give it a try, at least for some use cases.

Roam-style bidirectional linking would be cool, but I wonder if it's better to keep it simple for everyone else rather than add very specific features for the few people like me. Your call...
Anyways, cool project! You're definitely making something people want :)
[1] https://github.com/aravindballa/gatsby-theme-andy/
[2] https://notes.andymatuschak.org/About_these_notes

alecrosa1 reply#
Funny enough Andy’s website is one of the reasons I started this. I have bidirectional linking on the roadmap since day one, but not like Roam, I plan to do something different to keep it simple. For me simplicity is number one here :)

Continue this thread — 1 reply

smabie1 reply#
I've had a bunch of problems with KaTeX, I'd recommend mathjax instead.
nimonian1 reply#
What are the problems you've had? I'm about to switch to KaTeX for speed which will take quite a bit of work and this got me spooked.
smabie1 reply#
It replaces my LaTex with unicode symbols that often look shitty, and are usually the wrong size. Also, it sometimes never rendered my equations. Don't let this totally dissuade you, I never really looked into it (switching to mathjax was easier) but I just remember that "out-of-the-box", a lot of things were broken.

Continue this thread — 1 reply

pretzelhands2 replies#
Maybe a bit late, but chiming in here to say that prosemirror in general is absolutely amazing. Used it to build my own note taking app, highly recommended.
alecrosa#
oh wow prosemirror is awesome, will definitely look into adding it
benrbray#
Thanks for making Notebag, I just tried it out and love how straightforward it is! I hope you'll consider adding math support in the future! Feel free to use my math plugin [1] as a starting point, it's MIT licensed. (still under development, but it's solid enough to use already)

[1] https://github.com/benrbray/prosemirror-math