Wikilinks
Vault note references, tags, and git hashes. data-wikilink, data-tag, data-hash.
When a vault exports to HTML, note references and metadata travel with it. ASW provides visual vocabulary for three kinds of vault-native references: wikilinks (cross-note references), tags (topic labels), and git hashes (provenance anchors). All three render as inline monospace spans — recognisable at a glance.
In Obsidian and similar tools, [[Note Name]] creates a link between notes. When exporting vault content to HTML, these references become data-wikilink spans — preserving the visual language of the knowledge graph.
Wikilinks
A data-wikilink span renders as a monospace, blue-tinted reference — the HTML equivalent of [[Note Name]]. A dotted underline signals "this is a link to somewhere else in the graph".
When the target note doesn't exist, add data-unresolved. The link dims to muted text — the standard visual convention for broken wikilinks in knowledge tools.
<span data-wikilink>Session Protocol</span>
<span data-wikilink data-unresolved>Missing Note</span>
Result: Session Protocol · Missing Note
Wrap in <a> when the target page exists:
<a href="session.html" data-wikilink>Session Protocol</a>
Result: Session Protocol
Resolved vs unresolved
| State | Attribute | Appearance |
|---|---|---|
| Resolved | data-wikilink |
Blue-tinted, dotted underline |
| Unresolved | data-wikilink data-unresolved |
Dim text, dim dotted underline |
Git hashes
data-hash renders a git commit hash — monospace, muted colour, slightly tighter letter-spacing. Designed for provenance displays where a piece of content needs to be traceable to a specific commit.
<span data-hash>a3f7b2c</span>
Result: a3f7b2c
Use in session metadata, changelog entries, or anywhere a commit reference adds traceability without demanding attention:
<p>
Last updated: <span data-session-meta>2026-03-27</span>
<span data-hash>a3f7b2c</span>
</p>
Result: Last updated: 2026-03-27 a3f7b2c
In context
These three attributes often appear together in exported vault content. A note backlink section might look like:
Linked from
- Session Protocol — directives/
- Tasks — vault extensions/
- Design Archive — not yet exported
Tags: vault reference · Commit 842a2cd
Reference
| Attribute | Values | Element |
|---|---|---|
data-wikilink |
(boolean) | span, a |
data-unresolved |
(boolean) | Paired with data-wikilink |
data-tag |
(boolean) | span, a |
data-hash |
(boolean) | Any inline element |