renderLinkSuggestion
Renders a link suggestion the way LinkAndTagInputSuggest shows it: the link text with the matched characters highlighted, and the file path below it when it differs.
Import:
import { renderLinkSuggestion } from '@mnaoumov/obsidian-lib/link-and-tag-input-suggest';Signature:
function renderLinkSuggestion(suggestion: LinkSuggestion, el: HTMLElement): voidParameters:
| Parameter | Type | Description |
|---|---|---|
suggestion |
LinkSuggestion | The link suggestion. |
el |
HTMLElement | The suggestion element to render into. |
Returns: void