Obsidian Markdown

作者 kepano3ccff5338ea7无许可证49K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库3周前更新

Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.

仅含说明Writing & Content
AI 生成的概览

创建和编辑 Obsidian 风格 Markdown 笔记,支持 wikilink、嵌入、标注、属性、标签等 Obsidian 语法。

功能
该技能指导智能体编写有效的 Obsidian 风格 Markdown,涵盖 Obsidian 特有扩展,如 wikilink、嵌入、标注、frontmatter 属性、标签、注释、高亮、数学公式、Mermaid 图表和脚注。它提供创建笔记的分步流程,从添加 frontmatter 到链接、嵌入、标注以及在阅读视图中验证。它还指向随附的标注、嵌入和属性参考文件。产出物是 Markdown 笔记内容,而非渲染后的文件。
适用场景
适用于处理 Obsidian 库中的 .md 文件,或用户提到 wikilink、标注、frontmatter、标签、嵌入或 Obsidian 笔记时。适合需要确保 Obsidian 特有语法正确的笔记创建与编辑任务。
运行要求
无脚本,仅为说明文档。它引用三个随附参考文档(CALLOUTS.md、EMBEDS.md、PROPERTIES.md)。除智能体本身外,无需软件包、凭据或网络访问。

Obsidian Flavored Markdown Skill

Create and edit valid Obsidian Flavored Markdown. Obsidian extends CommonMark and GFM with wikilinks, embeds, callouts, properties, comments, and other syntax. This skill covers only Obsidian-specific extensions -- standard Markdown (headings, bold, italic, lists, quotes, code blocks, tables) is assumed knowledge.

Workflow: Creating an Obsidian Note

  1. Add frontmatter with properties (title, tags, aliases) at the top of the file. See PROPERTIES.md [blocked] for all property types.
  2. Write content using standard Markdown for structure, plus Obsidian-specific syntax below.
  3. Link related notes using wikilinks ([[Note]]) for internal vault connections, or standard Markdown links for external URLs.
  4. Embed content from other notes, images, or PDFs using the ![[embed]] syntax. See EMBEDS.md [blocked] for all embed types.
  5. Add callouts for highlighted information using > [!type] syntax. See CALLOUTS.md [blocked] for all callout types.
  6. Verify the note renders correctly in Obsidian's reading view.

When choosing between wikilinks and Markdown links: use [[wikilinks]] for notes within the vault (Obsidian tracks renames automatically) and [text](url) for external URLs only.

Internal Links (Wikilinks)

markdown
[[Note Name]]                          Link to note[[Note Name|Display Text]]             Custom display text[[Note Name#Heading]]                  Link to heading[[Note Name#^block-id]]                Link to block[[#Heading in same note]]              Same-note heading link

Define a block ID by appending ^block-id to any paragraph:

markdown
This paragraph can be linked to. ^my-block-id

For lists and quotes, place the block ID on a separate line after the block:

markdown
> A quote block
^quote-id

Embeds

Prefix any wikilink with ! to embed its content inline:

markdown
![[Note Name]]                         Embed full note![[Note Name#Heading]]                 Embed section![[image.png]]                         Embed image![[image.png|300]]                     Embed image with width![[document.pdf#page=3]]               Embed PDF page

See EMBEDS.md [blocked] for audio, video, search embeds, and external images.

Callouts

markdown
> [!note]> Basic callout.
> [!warning] Custom Title> Callout with a custom title.
> [!faq]- Collapsed by default> Foldable callout (- collapsed, + expanded).

Common types: note, tip, warning, info, example, quote, bug, danger, success, failure, question, abstract, todo.

See CALLOUTS.md [blocked] for the full list with aliases, nesting, and custom CSS callouts.

Properties (Frontmatter)

yaml
---title: My Notedate: 2024-01-15tags:  - project  - activealiases:  - Alternative Namecssclasses:  - custom-class---

Default properties: tags (searchable labels), aliases (alternative note names for link suggestions), cssclasses (CSS classes for styling).

See PROPERTIES.md [blocked] for all property types, tag syntax rules, and advanced usage.

Tags

markdown
#tag                    Inline tag#nested/tag             Nested tag with hierarchy

Tags can contain letters, numbers (not first character), underscores, hyphens, and forward slashes. Tags can also be defined in frontmatter under the tags property.

Comments

markdown
This is visible %%but this is hidden%% text.
%%This entire block is hidden in reading view.%%

Obsidian-Specific Formatting

markdown
==Highlighted text==                   Highlight syntax

Math (LaTeX)

markdown
Inline: $e^{i\pi} + 1 = 0$
Block:$$\frac{a}{b} = c$$

Diagrams (Mermaid)

markdown
```mermaidgraph TD    A[Start] --> B{Decision}    B -->|Yes| C[Do this]    B -->|No| D[Do that]```

To link Mermaid nodes to Obsidian notes, add class NodeName internal-link;.

Footnotes

markdown
Text with a footnote[^1].
[^1]: Footnote content.
Inline footnote.^[This is inline.]

Complete Example

markdown
---title: Project Alphadate: 2024-01-15tags:  - project  - activestatus: in-progress---
# Project Alpha
This project aims to [[improve workflow]] using modern techniques.
> [!important] Key Deadline> The first milestone is due on ==January 30th==.
## Tasks
- [x] Initial planning- [ ] Development phase  - [ ] Backend implementation  - [ ] Frontend design
## Notes
The algorithm uses $O(n \log n)$ sorting. See [[Algorithm Notes#Sorting]] for details.
![[Architecture Diagram.png|600]]
Reviewed in [[Meeting Notes 2024-01-10#Decisions]].

References

来源与署名

来源:kepano/obsidian-skills位于skills/obsidian-markdown提交3ccff53

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架