This commit is contained in:
Oscar Plaisant
2024-09-25 16:35:23 +02:00
parent 62f0313af1
commit 695358527b
177 changed files with 141941 additions and 25310 deletions

View File

@@ -10,7 +10,7 @@ Contents of the callout
- `note`, `tip`, `warning`, `caution`, `important`
Change callout **title**
# Change callout title
```
::: {.callout-note}
## The title
@@ -19,7 +19,7 @@ contents
```
Collapsed (folded) callout, with no icon
# Collapsed (folded) callout, with no icon
```
::: {.callout-important collapse=true icon=false}
## The title
@@ -27,4 +27,26 @@ Collapsed (folded) callout, with no icon
Content that is hidden by default
:::
```
- [i] `collapse=true` will make the callout foldable, but visible by default
- [i] `collapse=false` will make the callout foldable, but visible by default
# Cross-references
adding a tag for the callout (`#tip-XXXXX`) will allow for a nice cross reference with preview on hover.
```
::: {#tip-example .callout-tip}
## Cross-Referencing a Tip
Add an ID starting with `#tip-` to reference a tip.
:::
See @tip-example...
```
Here are the prefixes for the cross-reference tags :
| Callout Type | Prefix |
| ------------ | ------- |
| `note` | `#nte-` |
| `tip` | `#tip-` |
| `warning` | `#wrn-` |
| `important` | `#imp-` |
| `caution` | `#cau-` |