When Marked 2 refreshes the screen, all of my asciidoctor asciimath stops rendering

tcowan's Avatar

tcowan

05 May, 2023 09:43 PM

I have a video...

  1. Support Staff 1 Posted by Brett on 06 May, 2023 02:31 PM

    Brett's Avatar

    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. 2 Posted by tcowan on 06 May, 2023 05:18 PM

    tcowan's Avatar

    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:

  3. Support Staff 3 Posted by Brett on 06 May, 2023 05:32 PM

    Brett's Avatar

    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. 4 Posted by tcowan on 06 May, 2023 07:26 PM

    tcowan's Avatar

    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:

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Already uploaded files

  • marked_2_and_asciidoctor.mp4 10.3 MB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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