diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 17:27:48 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 17:27:48 +0300 |
| commit | 0df973de7b554008383a23fd4fc2a0b8e1401b37 (patch) | |
| tree | f52b7e58b6bc80c0731d48a15016c1a7ff55c422 /src/content/post/markdown-elements/admonitions.md | |
| parent | 0b6a5881b99027be9a175e7d1f2b112daef1ab51 (diff) | |
Cleanup and firt post
Diffstat (limited to 'src/content/post/markdown-elements/admonitions.md')
| -rw-r--r-- | src/content/post/markdown-elements/admonitions.md | 115 |
1 files changed, 0 insertions, 115 deletions
diff --git a/src/content/post/markdown-elements/admonitions.md b/src/content/post/markdown-elements/admonitions.md deleted file mode 100644 index d7cf5f9..0000000 --- a/src/content/post/markdown-elements/admonitions.md +++ /dev/null @@ -1,115 +0,0 @@ ---- -title: "Markdown Admonitions" -description: "This post showcases using the markdown admonition feature in Astro Cactus" -publishDate: "25 Aug 2024" -updatedDate: "7 Jan 2025" -tags: ["markdown", "admonitions"] ---- - -## What are admonitions - -Admonitions (also known as “asides”) are useful for providing supportive and/or supplementary information related to your content. - -## How to use them - -To use admonitions in Astro Cactus, wrap your Markdown content in a pair of triple colons `:::`. The first pair should also include the type of admonition you want to use. - -For example, with the following Markdown: - -```md -:::note -Highlights information that users should take into account, even when skimming. -::: -``` - -Outputs: - -:::note -Highlights information that users should take into account, even when skimming. -::: - -## Admonition Types - -The following admonitions are currently supported: - -- `note` -- `tip` -- `important` -- `warning` -- `caution` - -### Note - -```md -:::note -Highlights information that users should take into account, even when skimming. -::: -``` - -:::note -Highlights information that users should take into account, even when skimming. -::: - -### Tip - -```md -:::tip -Optional information to help a user be more successful. -::: -``` - -:::tip -Optional information to help a user be more successful. -::: - -### Important - -```md -:::important -Crucial information necessary for users to succeed. -::: -``` - -:::important -Crucial information necessary for users to succeed. -::: - -### Caution - -```md -:::caution -Negative potential consequences of an action. -::: -``` - -:::caution -Negative potential consequences of an action. -::: - -### Warning - -```md -:::warning -Critical content demanding immediate user attention due to potential risks. -::: -``` - -:::warning -Critical content demanding immediate user attention due to potential risks. -::: - -## Customising the admonition title - -You can customise the admonition title using the following markup: - -```md -:::note[My custom title] -This is a note with a custom title. -::: -``` - -Outputs: - -:::note[My custom title] -This is a note with a custom title. -::: |
