prosemirror-math
prosemirror-math copied to clipboard
Support Preview Pane for Block Math
Resolves #28.
- Display math now shows a preview pane. Inline math previews may be supported in the future.
- It should be fairly simple to adjust the appearance of the preview pane with CSS.
- Added an
initialTextparameter toinsertMathCmd
Breaking Changes
- Added new
isBlockMathargument toMathViewconstructor mathPluginandmathPluginSpecare now functions that accept anoptionsparameter- The
mathPluginstate now has an extra flag indicating whether previews are enabled
TODOs:
- [ ] Investigate whether inline previews can be trivially added (e.g. via CSS) or whether they should be added in a separate PR.
- [ ] Update the docs site with a checkbox to enable/disable previews?
- [ ] Better error reporting when preview is active?
I think it's better to have the inline previews in a separate PR, since there's no common things with block preview IMO.