Skip to content

ExtendedTableOfContents unhide icon sometimes fails #52

Closed

Description

@ederag

With hide_preamble = true (default), defining ExtendedTableOfContents before the first header
hides its definition, which makes it impossible to modify its arguments.
Workaround: edit the file with an external editor and set

PlutoExtras.ExtendedTableOfContents(hide_preamble = false)

But it would be great to have a way to unhide the preamble from pluto.

MWE:

# ╔═╡ d3359a6a-1003-11f1-ba9d-fdfd818d1ee7
using PlutoExtras

# ╔═╡ 2b083358-1305-496c-9a0f-0007c2bec6f7
PlutoExtras.ExtendedTableOfContents(hide_preamble = true)

Activity

  1. ederag commented on Feb 22, 2026

    @ederag
    Author

    There is a "unhide" toggle (second icon from the left), that appears when hovering on the Table of contents menu:
    Image
    That works.

  2. ederag commented on Feb 22, 2026

    @ederag
    Author

    Actually it does not always work;
    The unhide icon sometimes gets unresponsive, or does not appear at all.
    The pluto "Record (preview)" does not capture the mouse pointer, which makes it useless here.
    Versions: firefox 140.7.0esr, Pluto v0.20.21 and PlutoExtras 0.7.17.

    # ╔═╡ d3359a6a-1003-11f1-ba9d-fdfd818d1ee7
    using PlutoExtras
    
    # ╔═╡ 2b083358-1305-496c-9a0f-0007c2bec6f7
    PlutoExtras.ExtendedTableOfContents(hide_preamble = true)
    
    # ╔═╡ 0b584cd8-ef5b-4497-b7f2-8f0a4dd1d156
    # ╠═╡ custom_attrs = ["toc-hidden"]
    md"""
    # First section
    """
  3. reopened this on Feb 22, 2026
  4. ederag commented on Feb 22, 2026

    @ederag
    Author

    Actually the first section "unhide" button sometimes does not work at all:
    its display toggles between the eye and the barred-eye, but the section remains visible,
    and the file does not change, with "toc-hidden" on:

    # ╔═╡ 0b584cd8-ef5b-4497-b7f2-8f0a4dd1d156
    # ╠═╡ custom_attrs = ["toc-hidden"]
    md"""
    # First section
    """

    EDIT: with hide_preamble = false it works as advertised, up to now.

  5. changed the title [-]No access to preamble when ExtendedTableOfContents is defined before the first header[/-] [+]ExtendedTableOfContents unhide icon sometimes fails[/+] on Feb 22, 2026
  6. disberd commented on Feb 23, 2026

    @disberd
    Owner

    Hi @ederag I also noticed a few days ago that hiding the ToC sometimes causes issues with the unhide button. I think there is some bug with the JS code but didn't have the time to tackle it yet 🙂

  7. disberd commented on Feb 24, 2026

    @disberd
    Owner

    Hi @ederag, I just submitted a new patch release.
    I checked briefly locally and the copilot PR seems to indeed fix this issue (I was quite surprised that copilot understood what needed to be fixed just by reading the context in this issue :D).

    Have a check if you confirm that the problem is solved if you can and re-open this if the fix isn't working for your usecase

  8. ederag commented on Feb 26, 2026

    @ederag
    Author

    Fixed in v0.7.18 indeed, thanks !

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions