-
Is there a way to include a single admonition itself to the Table Of Contents? If there is not any way to do this, can I use an invisible header that is only visible in TOC, or a visible header that is not visible in TOC? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I also think this would be a great feature! |
Beta Was this translation helpful? Give feedback.
-
I managed to get this effect in a FAQ by using invisible headings that have the same text as the admonition's title. The FAQ entries are all in
See the result here. Note: There's also some |
Beta Was this translation helpful? Give feedback.
I managed to get this effect in a FAQ by using invisible headings that have the same text as the admonition's title. The FAQ entries are all in
details
admonitions that are collapsed by default.extra.css
, I created a custom admonition class.extra.css
, I styled<h5>
elements that are inside that custom admonition class withvisibility: hidden;
.#####
inside thedetails
, with the same text as the admonition'stitle
. Here's a real example with some of the text content trimmed out for brevity.