Skip to content

renderTagSuggestion

Renders a tag suggestion the way LinkAndTagInputSuggest and TagListComponent show it: the tag with its # and the matched characters highlighted, and its note count beside it.

Import:

import { renderTagSuggestion } from '@mnaoumov/obsidian-lib/link-and-tag-input-suggest';

Signature:

function renderTagSuggestion(suggestion: TagSuggestion, el: HTMLElement): void

Parameters:

Parameter Type Description
suggestion TagSuggestion The tag suggestion.
el HTMLElement The suggestion element to render into.

Returns: void