When Marked 2 refreshes the screen, all of my asciidoctor asciimath stops rendering
I have a video...
- marked_2_and_asciidoctor.mp4 10.3 MB
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Brett on 06 May, 2023 02:31 PM
What method does Asciidoctor use to render the math? If it's done with
MathJax or similar through an embedded script, then the issue is that
the content of the display is being replaced but the scripts are not
being triggered because it's not a full refresh. I can show you how to
add a JavaScript update hook that can trigger them again, but I don't
know exactly how the math is being rendered to begin with.
On 5 May 2023, at 16:44, tcowan wrote:
2 Posted by tcowan on 06 May, 2023 05:18 PM
Brett,
Thank you for getting back to me. I am not sure how to answer your
question. This is a bit over my head.
Perhaps this page may answer your question:
https://docs.asciidoctor.org/asciidoc/latest/stem/
By the way, hitting CMD-R while in Marked 2 will refresh your screen and my
equations reappear. I wouldn't bother you except that live preview was the
reason I bought Marked 2 in the first place (and I love it and use it
constantly).
On Sat, May 6, 2023 at 8:31 AM Brett <[email blocked]>
wrote:
Support Staff 3 Posted by Brett on 06 May, 2023 05:32 PM
It appears to use MathJax, and is probably loading a separate instance
of MathJax in the document, which is conflicting with built-in MathJax
support. Under Preferences->Style, do you have MathJax enabled?
-Brett
On 6 May 2023, at 12:18, tcowan wrote:
4 Posted by tcowan on 06 May, 2023 07:26 PM
I turned the MathJax option on and I am not sure that was an improvement.
I notice, whether the MathJax option is enabled or not, if I change one of
the Asciimath equations, the CMD-R workaround no longer works. When the
Mathjax option is enabled, not even killiing Marked 2 and restarting it
causes my equations to render again.
On Sat, May 6, 2023 at 11:32 AM Brett <[email blocked]>
wrote: