update
This commit is contained in:
@@ -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-` |
|
||||
|
Reference in New Issue
Block a user