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

[Enhancement]: Latex Support #725

Open
1 task done
jianlong-liu opened this issue Jul 17, 2024 · 5 comments
Open
1 task done

[Enhancement]: Latex Support #725

jianlong-liu opened this issue Jul 17, 2024 · 5 comments
Assignees
Labels
enhancement Small enhancements to existing features

Comments

@jianlong-liu
Copy link

Which feature is your request related to?

markdown

Describe your request for enhancements!

When text is wrapped by $ or $$, render it in Latex (either through Katex or MathJax).

Additional context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jianlong-liu jianlong-liu added the enhancement Small enhancements to existing features label Jul 17, 2024
@github-project-automation github-project-automation bot moved this to 📕 Todo in Butterfly Jul 17, 2024
@CodeDoctorDE
Copy link
Member

Good idea. Maybe also add it in rich text mode, but I'm currently not sure how

@CodeDoctorDE
Copy link
Member

I searched a bit how we could make it and found this:

Adding a javascript engine could also help the app adding new libraries, maybe enhancing the current pdf status. Then we could use pdf.js directly and support more features.
But it also adds up the app size (~ 5mb)

@axiomtutor
Copy link

Just a note (not sure if notes like this are appreciated or annoying?):

I would make heavy use of LaTeX if it were available. I'm planning on using Butterfly to make a collection of math courses on YouTube.

@CodeDoctorDE
Copy link
Member

Yeah, I'm currently evaluating how I could add it on all platforms without having any difference.
I think the javascript version with katex is the best option on all platforms combined with https://crates.io/crates/boa_engine. I'm just thinking if this could also be the option to add extension support for butterfly.

@axiomtutor
Copy link

If I understood these things more deeply I'd offer to help -- but I think all I can do is promise to test it if you ever get it working! In any case I appreciate the work.

But I've used KaTeX directly in web pages and it works great. So if it can be integrated, I'd be very happy with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Small enhancements to existing features
Projects
Status: 📕 Todo
Development

No branches or pull requests

3 participants