md2hd

Guide4 min read

Write cards

Turn a frontmatter block into a card and control its name, type, weight, fields, and note.

One YAML frontmatter block becomes one card. Markdown after the block becomes its note.

---
id: acme
type: organization
title: Acme Corp
subtitle: Municipal · 9 members
description: The account everything else routes through.
weight: lead
tags: [prospect, warm]
---

Everything here is the note. Headings, lists, tables, links, and **emphasis**
render normally.

Card fields

FieldWhat it controlsDefault
typeThe category and color. Use any name.note
idThe target used by relationships and wikilinks.slug of the title
title or nameCard title.first body heading, then Untitled
subtitleOne line below the title.none
descriptionOpening paragraph in the note view.none
weightHow strongly the card draws.normal
tagsChips on the card and in its details.none
rel, rels, or linksNamed connections to other IDs.none

Only type and a title are usually worth writing by hand.

IDs are slugged. Acme Corp, acme corp, and acme-corp all resolve to acme-corp. This lets [[Acme Corp]] find a card with id: acme-corp.

Set id: yourself when a title may change or two cards have the same title.

Add your own fields

Any unreserved frontmatter key appears as a labeled row in the note view.

website: riversidecity.gov
email: dana@riversidecity.gov
phone: +1 360 555 0142
stage: Qualified
channels: [email, print]
last_contact: 2026-05-14

URLs, domains, email addresses, and phone numbers become links. Strings, numbers, dates, booleans, and arrays render. Nested objects are skipped.

Weight

Use weight for priority, not card size.

TierAlso acceptsResult
lead5, critical, primary, keystrongest stroke and halo
major4, highstrong stroke
normal3, medium, defaultdefault
minor2, lowquieter
faint1, background, trivialquietest

Put several cards in one file

Start each card with another frontmatter block:

---
id: first
type: note
title: First
---

Note for the first card.

---
id: second
type: note
title: Second
---

Note for the second card.

A --- line only starts a card when the next non-blank line looks like a YAML key. Otherwise it remains a normal Markdown horizontal rule. Text before the first frontmatter block is ignored.

Linked but undefined cards

If a relationship points to an ID with no card block, md2hd keeps the connection and draws a dashed gray card. Add the missing block or correct the target ID to resolve it.