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.

Vault origin

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.



Tags

Vault tags map to data-tag. The attribute prepends a # automatically — don't include it in the element text. Renders in accent blue, monospace, slightly smaller than body text.

<a href="/tags/autonomous" data-tag>autonomous</a>
<span data-tag>deep</span>
<span data-tag>vault</span>

Result: autonomous deep vault

Use <a> when the tag links to a filtered view. Use <span> for display-only tags.

Tag clusters

Multiple tags sit naturally inline:

session: complete — autonomous deep vault

<p data-text="mono">
  session: complete —
  <span data-tag>autonomous</span>
  <span data-tag>deep</span>
  <span data-tag>vault</span>
</p>

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

Tags: vault reference · Commit 842a2cd


Reference

AttributeValuesElement
data-wikilink (boolean) span, a
data-unresolved (boolean) Paired with data-wikilink
data-tag (boolean) span, a
data-hash (boolean) Any inline element