256 คำ
1 นาที
Markdown Extended Features

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.

FabrizzMMM-OnSpotify

Create a GitHub repository card with the code ::github{repo="<owner>/<repo>"}.

::github{repo="saicaca/fuwari"}

Mermaid Diagrams#

Fenced mermaid blocks are rendered as diagrams and follow the active color scheme.

flowchart LR
    accTitle: Markdown rendering pipeline
    accDescr: Markdown source is transformed into semantic HTML and then enhanced as a themed SVG diagram.
    A[Markdown source] --> B[Astro content pipeline]
    B --> C[Semantic HTML]
    C --> D[Themed diagram]

Admonitions#

Following types of admonitions are supported: note tip important warning caution

Basic Syntax#

:::note
Highlights information that users should take into account, even when skimming.
:::
:::tip
Optional information to help a user be more successful.
:::

Custom Titles#

The title of the admonition can be customized.

:::note[MY CUSTOM TITLE]
This is a note with a custom title.
:::

GitHub Syntax#

> [!NOTE]
> The GitHub syntax is also supported.
> [!TIP]
> The GitHub syntax is also supported.

Spoiler#

You can add spoilers to your text. The text also supports Markdown syntax.

The content !

The content :spoiler[is hidden **ayyy**]!

Image Widths and Captions#

A standalone image accepts an optional w-N% width token in its alt text and a Markdown title rendered as a centered caption below the image:

Album example image
Half-width image with a caption
![Image description w-50%](./image.webp "Visible caption")

Valid widths range from w-1% to w-100%; invalid tokens stay in the alt text. The width and the caption are independent — a title alone also produces a caption:

Album example image
Album example image
Caption without a width token

Markdown Syntax Guide

เสร็จสมบูรณ์

ตอนที่ 2 จาก 3บทความนี้เป็นส่วนหนึ่งของซีรีส์

Markdown Extended Features
https://blog.kagurayami.top/th/posts/markdown-extended/
ผู้เขียน
Shirone
เผยแพร่เมื่อ
2024-05-01
สัญญาอนุญาต
CC BY-NC-SA 4.0

แชร์บทความ

สร้างรูปภาพแชร์หรือคัดลอกลิงก์เพื่อส่งต่อบทความนี้

อ่านต่อ

บทความที่เกี่ยวข้อง

อิงจากแท็กและหมวดหมู่ร่วมกัน

ลองเส้นทางอื่น

คัดเลือกจากบทความอื่นด้วยเกณฑ์ที่คงที่

อัปเดตล่าสุดเมื่อ ผ่านมาแล้ว 677 วัน

เนื้อหาบางส่วนอาจล้าสมัย