-
-
Notifications
You must be signed in to change notification settings - Fork 591
Conversation
This looks really awesome, currently trying to implement it! Also, add to block menu can simply be fixed by changing the command to |
@tommoor it seems that the |
The pipeline is:
|
@tommoor I have replaced the rule in However when inspecting the Prosemirror node in the state, the content is an empty array, and hence the equations don't show. So it looks like there is an error in how the tokens are matched to nodes. The math-katex rule also defines a markdown-it renderer (e.g. |
If the prosemirror nodes are being created then it's matching correctly (It uses the |
@tommoor the matching is correctly then but it still doesn't pick up the content. In the screenshot is a comparison between a |
I've been able to fix this by changing the For
For
In addition, I used the math rule from https://github.com/yzhang-gh/markdown-it-katex/blob/master/index.js to correctly match Using these fixes, the hydration from saved markdown works without problem @tommoor let me know if I should create a merge request for this |
Proof of concept using
prosemirror-math
to manage flipping between KaTeX and an editable math expression. Note that including this in Outline as it stands would probably be a blocker for collab editing, as it lacks support.TODO
readOnly
related outline/outline#1038