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

How to make custom code renderers #15

Open
logicminds opened this issue Sep 1, 2021 · 0 comments
Open

How to make custom code renderers #15

logicminds opened this issue Sep 1, 2021 · 0 comments

Comments

@logicminds
Copy link

First off thank you for forking this project. Using this component is really easy and has replaced quill.

I want to make a custom code render function where when the user runs the specifies the following code block the javascript code will convert to a math function using something like https://latex.codecogs.com/ or katex to render on the client. Quilljs has a method of doing this called formula which is pretty simple to setup. If I can get this working I would be happy to make a PR. I am just not sure how to do this. How do I detect and render this math code block?

```math
\int \frac{1}{x} dx = \ln \left| x \right| + C
```

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

No branches or pull requests

1 participant