AnnotationsΒΆ
You can add little markers called annotations almost anywhere in a document and expand a tooltip containing arbitrary Markdown on click or keyboard focus.
Using AnnotationsΒΆ
Annotations consist of two parts: a marker (1, 2, 3, etc.), which can be placed anywhere in a block marked with the { .annotate } class, and content located in a list below the block containing the marker
Lorem ipsum dolor sit amet, (1) consectetur adipiscing elit.
{ .annotate }
1. :man_raising_hand: I'm an annotation! I can contain `code`, __formatted
text__, images, ... basically anything that can be expressed in Markdown.
Lorem ipsum dolor sit amet, (1) consectetur adipiscing elit.
I'm an annotation! I can contain
code, formatted text, images, ... basically anything that can be expressed in Markdown.
In AnnotationsΒΆ
You can nest annotations inside other annotations!
Lorem ipsum dolor sit amet, (1) consectetur adipiscing elit.
{ .annotate }
1. :man_raising_hand: I'm an annotation! (1)
{ .annotate }
1. :woman_raising_hand: I'm an annotation as well!
Lorem ipsum dolor sit amet, (1) consectetur adipiscing elit.
-
I'm an annotation! (1)
I'm an annotation as well!
In AdmonitionsΒΆ
You can put annotations within admonitions as well!
!!! note annotate "Title with annotation (1)"
Lorem ipsum dolor sit amet, (2) consectetur adipiscing elit. Nulla et
euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo
purus auctor massa, nec semper lorem quam in massa.
1. :man_raising_hand: I'm an annotation in the title!
2. :woman_raising_hand: I'm an annotation as well!
Title with annotation (1)
Lorem ipsum dolor sit amet, (2) consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa.
I'm an annotation in the title!
I'm an annotation in the admonition body!
In Content TabsΒΆ
You can put annotations in content tabs by adding the { .annotate } class to the block of a content tab.
=== "Tab 1"
Lorem ipsum dolor sit amet, (1) consectetur adipiscing elit.
{ .annotate }
1. :man_raising_hand: I'm an annotation!
=== "Tab 2"
Phasellus posuere in sem ut cursus (1)
{ .annotate }
1. :woman_raising_hand: I'm an annotation as well!
Lorem ipsum dolor sit amet, (1) consectetur adipiscing elit.
I'm an annotation!
Phasellus posuere in sem ut cursus (1)
I'm an annotation as well!