Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement feature supporting inline/block math #1

Open
strogonoff opened this issue Oct 5, 2020 · 2 comments
Open

Implement feature supporting inline/block math #1

strogonoff opened this issue Oct 5, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@strogonoff
Copy link
Collaborator

No description provided.

@strogonoff strogonoff added the enhancement New feature or request label Oct 5, 2020
@strogonoff
Copy link
Collaborator Author

We can start with a non-inline block first, if it’s easier, but ideally it should support inline and non-inline math in the end.

@strogonoff
Copy link
Collaborator Author

strogonoff commented Oct 26, 2020

For an example of a “feature”, see for example admonition blocks here: https://github.com/riboseinc/reprose/tree/master/src/features/admonition.

The schema part is responsible for contributing nodes and/or marks to overall ProseMirror schema used by the editor. That schema determines which blocks are supported, which blocks can go inside which blocks, and how to covert blocks to and from DOM/HTML.

The author part is responsible for contributing custom plugins that augment editor’s GUI (e.g., providing custom node views) and menu item configuration.

See typings in the files. Both files should export either a “feature”, or a function that takes some configuration and returns a feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant