blog/src/content/posts/markdown-extended.md

66 lines
1.4 KiB
Markdown
Raw Normal View History

---
2024-05-03 01:27:42 +08:00
title: Markdown Extended Features
published: 2024-05-01
description: 'Read more about Markdown features in Fuwari'
image: ''
tags: [Demo, Example, Markdown, Fuwari]
2024-05-03 01:27:42 +08:00
category: 'Examples'
draft: false
---
2024-05-03 01:27:42 +08:00
## GitHub repository cards
You can add dynamic cards that link to GitHub repositories, on page load, the repository information is pulled from the GitHub API.
::github{repo="Fabrizz/MMM-OnSpotify"}
2024-05-03 01:27:42 +08:00
Create a GitHub repository card with the code `::github{repo="<owner>/<repo>"}`.
2024-05-03 01:27:42 +08:00
```markdown
::github{repo="saicaca/fuwari"}
```
## Admonitions
Following types of admonitions are supported: `note` `tip` `important` `warning` `caution`
:::note
2024-05-03 01:27:42 +08:00
Highlights information that users should take into account, even when skimming.
:::
2024-05-03 01:27:42 +08:00
:::tip
Optional information to help a user be more successful.
:::
:::important
2024-05-03 01:27:42 +08:00
Crucial information necessary for users to succeed.
:::
:::warning
2024-05-03 01:27:42 +08:00
Critical content demanding immediate user attention due to potential risks.
:::
:::caution
2024-05-03 01:27:42 +08:00
Negative potential consequences of an action.
:::
```markdown
:::note
Highlights information that users should take into account, even when skimming.
:::
:::tip
Optional information to help a user be more successful.
:::
```
The title of the admonition can be customized.
:::note[MY CUSTOM TITLE]
This is a note with a custom title.
:::
```markdown
:::note[MY CUSTOM TITLE]
This is a note with a custom title.
:::
```