ankitects / ankitects/anki

Consider using ProseMirror for RichTextInput?

Open
#2,108 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
30.5k
Forks
3.2k
Avg merge
2d 8h
Merged PRs (30d)
60

Description

While doing research for this [forum topic](https://forums.ankiweb.net/t/using-markdown-to-highlight-text/23621/5), I discovered [ProseMirror](https://prosemirror.net/) - a rich-text editor toolkit made by the same guy that wrote CodeMirror.

It has several very intriguing features that would fit well into Anki:
- WYSIWYM Markdown editing (https://prosemirror.net/examples/markdown/)
- Node views (https://prosemirror.net/docs/ref/#view.NodeView)
- allows inline CodeMirror instances (https://prosemirror.net/examples/codemirror/)
- together with [this plugin](https://benrbray.com/prosemirror-math/), we could replace the buggy MathJax editor with inline [KaTeX](https://katex.org/) (#2106)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.