vaultmd / deriveTags
Function: deriveTags()
deriveTags(
frontmatter):string[]
Defined in: src/frontmatter/tags.ts:30
Extract and normalise tag tokens from a parsed frontmatter object. Reads either the tags or tag key (whichever is present), tokenises string values on whitespace and commas, and strips leading # characters. Duplicate tokens are removed (first occurrence wins).
Parameters
frontmatter
Record<string, unknown>
Parsed frontmatter key-value map.
Returns
string[]
Ordered, deduplicated array of normalised tag strings.