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

Support for LaTeX formula #19

Open
hotarugali opened this issue Dec 14, 2021 · 3 comments
Open

Support for LaTeX formula #19

hotarugali opened this issue Dec 14, 2021 · 3 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@hotarugali
Copy link

Hope to support copying latex formula as markdown. When the web page contains latex formula, it seems that there is something incompatible when using copy-as-markdown. One example is shown as follows, the left is the web page while the right is the markdown text converted by copy-as-markdown.

image

@notlmn
Copy link
Owner

notlmn commented Dec 18, 2021

Can you provide a link to the page that you are testing this on for us to be able to reproduce?

@hotarugali
Copy link
Author

The link to the page is https://codeforces.com/contest/1591/problem/D.

@notlmn
Copy link
Owner

notlmn commented Mar 16, 2022

I see a bit different behavior than you do, probably because I'm on Firefox. I suspect this is because of the nobr tag that MathJax uses, this is not pure MathML, the MathJax library handles the rendering in this case and adds/removes additional elements as needed.

It is realistically not possible to handle markup that is created by libraries out in the wild. I would have to say no for this as the effort put in would not make sense for me personally.

I'm open to PRs if anyone is willing to put in the effort to make this work. I'll leave it open for now.

@notlmn notlmn added help wanted Extra attention is needed good first issue Good for newcomers labels Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants