"Flashing" knowls

13 views
Skip to first unread message

Jeremy Sylvestre

unread,
May 11, 2026, 8:42:51 AM (5 days ago) May 11
to PreTeXt development
Seeing some odd behaviour for hidden knowls in the sample article: when clicked to reveal, the entire knowl opens immediately, then disappears and re-opens via animation.

(For knowls with only a small amount of content, you might not see the initial "flash" because it happens so quickly.)


Cheers,
Jeremy S

Rob Beezer

unread,
May 11, 2026, 11:00:04 AM (5 days ago) May 11
to prete...@googlegroups.com
I see this in Firefox, but it is really quick, so not so noticeable. Might be
only if there is math in the knowl? Can you test a knowl without any math in it?

Can't think of what would have changed recently, except that MathJax 4 is now
live. Are you using the very latest CLI (as in, released yesterday)? MJ4
announcment slated for today...

Rob
> screen capture video <https://sites.ualberta.ca/~jsylvest/pretext-dev/flashing-
> knowl.mkv>
>
> Cheers,
> Jeremy S
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-dev...@googlegroups.com <mailto:pretext-
> dev+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/
> CALMYOnf4%2B0nchQk5zK6n-BEc5XdT-t%2BZ_H_hCUmszbY%2BRxDBQw%40mail.gmail.com
> <https://groups.google.com/d/msgid/pretext-dev/CALMYOnf4%2B0nchQk5zK6n-BEc5XdT-
> t%2BZ_H_hCUmszbY%2BRxDBQw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Jeremy Sylvestre

unread,
May 11, 2026, 12:48:33 PM (5 days ago) May 11
to prete...@googlegroups.com
On Mon, 11 May 2026 at 11:00, 'Rob Beezer' via PreTeXt development <prete...@googlegroups.com> wrote:
I see this in Firefox, but it is really quick, so not so noticeable.

Yes, very quick if the knowl does not have much content. But much more pronounced for knowls with lots of content.
 
Might be
only if there is math in the knowl?  Can you test a knowl without any math in it?


I clicked through a bunch of the knowls in Section 21: Cross-Referencing of the sample article, and it does seem to be the case that it only happens with knowls that contain math.
 
Can't think of what would have changed recently, except that MathJax 4 is now
live.  Are you using the very latest CLI (as in, released yesterday)?

No idea, this is the live sample article on pretextbook.org where I see this.

Andrew Scholer

unread,
May 11, 2026, 2:40:11 PM (4 days ago) May 11
to prete...@googlegroups.com
I can reproduce this on MJ 3 and 4 using the up to date pretext core.

Happy to PR something to fix the issue - shouldn't be a big lift.

Andrew



--
You received this message because you are subscribed to the Google Groups "PreTeXt development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pretext-dev...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/CALMYOndBaWT66eJkQ0OR8t1Z3X-g%3DB4csHip%3DteKMbH_G%3DGfrw%40mail.gmail.com.

Rob Beezer

unread,
May 11, 2026, 2:44:36 PM (4 days ago) May 11
to prete...@googlegroups.com
Great, thanks for the further sleuthing.

Sample article was built a while ago, but I'm pretty sure it has MJ 4 (I can
check in a bit, context menu will say).

There are various things going on to let MJ do its thing, before other rendering
happens, so if I had to guess I think something needs attention there, but that
is outside my expertise. Others?

Rob

On 5/11/26 09:48, Jeremy Sylvestre wrote:
>
> On Mon, 11 May 2026 at 11:00, 'Rob Beezer' via PreTeXt development <pretext-
> d...@googlegroups.com <mailto:prete...@googlegroups.com>> wrote:
>
> I see this in Firefox, but it is really quick, so not so noticeable.
>
>
> Yes, very quick if the knowl does not have much content. But much more
> pronounced for knowls with lots of content.
>
> Might be
> only if there is math in the knowl?  Can you test a knowl without any math
> in it?
>
>
> I clicked through a bunch of the knowls in Section 21: Cross-Referencing
> <https://pretextbook.org/examples/sample-article/html/section-cross-
> referencing.html#section-cross-referencing> of the sample article, and it does
> seem to be the case that it only happens with knowls that contain math.
>
> Can't think of what would have changed recently, except that MathJax 4 is now
> live.  Are you using the very latest CLI (as in, released yesterday)?
>
>
> No idea, this is the live sample article on pretextbook.org <http://
> pretextbook.org> where I see this.
>
> --
> You received this message because you are subscribed to the Google Groups
> "PreTeXt development" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to pretext-dev...@googlegroups.com <mailto:pretext-
> dev+uns...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/pretext-dev/
> CALMYOndBaWT66eJkQ0OR8t1Z3X-g%3DB4csHip%3DteKMbH_G%3DGfrw%40mail.gmail.com
> <https://groups.google.com/d/msgid/pretext-dev/CALMYOndBaWT66eJkQ0OR8t1Z3X-
> g%3DB4csHip%3DteKMbH_G%3DGfrw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Rob Beezer

unread,
May 11, 2026, 8:23:36 PM (4 days ago) May 11
to prete...@googlegroups.com
Andrew has improved the knowl animations a lot, at
https://github.com/PreTeXtBook/pretext/pull/2845

For me, it looks better locally than online, so there must be some lag
retrieving something.

Have a look, the sample article is live with the changes.

Thanks, Jeremy, for the report!

Rob
Reply all
Reply to author
Forward
0 new messages