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

Need Context menu option Render As Plain Source in V3 (or V3.2+) #3316

Open
jabobian opened this issue Dec 20, 2024 · 2 comments
Open

Need Context menu option Render As Plain Source in V3 (or V3.2+) #3316

jabobian opened this issue Dec 20, 2024 · 2 comments

Comments

@jabobian
Copy link

Is your feature request related to a problem? Please describe.
I'm always frustrated when need to copy paragraphs with inline equations.
For MathJax v2.7, there is an option Render As Plain Source, so I can duplidate the webpage, and show the content in plain source for easy copy equations, while keep the original webpage showing equations rendered as CHTML.

For MathJax v3.2, it is now easier to copy a single equation by Copy > Latex command, but it becomes hard for copy paragraphs.

Describe the solution you'd like
Context menu option Render As Plain Source in V3

@dpvc
Copy link
Member

dpvc commented Dec 22, 2024

As a workaround for now, you can do

MathJax.startup.document.state(0, true);

in the browser's developer console and that will remove the typeset math and restore the original notation (much like the "Plain Source" renderer did).

To get back the typeset version, do

MathJax.startup.document.clear();
MathJax.typesetPromise();

You could probably make bookmarklets for these, so they would be easy to access.

@jabobian
Copy link
Author

jabobian commented Dec 23, 2024

@dpvc Thank you very much. I use TamperMonkey script with menu items to emulate bookmarklet, it works like a charm.

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

No branches or pull requests

2 participants