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

Allow inline TeX #6

Open
SeanDS opened this issue Feb 1, 2019 · 1 comment
Open

Allow inline TeX #6

SeanDS opened this issue Feb 1, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@SeanDS
Copy link
Collaborator

SeanDS commented Feb 1, 2019

It's possible to register a new format for the paragraph block. Add one to allow inline TeX.

@SeanDS SeanDS added the enhancement New feature or request label Feb 16, 2019
@SeanDS
Copy link
Collaborator Author

SeanDS commented Jan 19, 2020

This is rather difficult. The format API expects to transform text using an HTML tag and optional class, but still let the underlying text be editable. Formatting TeX code into mathematical markup requires replacing the user's text (the TeX code) with new elements, i.e. the rendered mathematics, and thus should not be editable. It may be possible to stop the elements from being editable with the contenteditable attribute but this might interfere with Gutenberg behaviour and would need to be undone when the user wants to edit the underlying markup.

I made an issue about this.

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