Skip to content

linkReferenceCheck

Makes link references links only when their label is defined: a [text], [text][] or [text][label] whose label is not among labels stays text, with its brackets.

Import:

import { linkReferenceCheck } from '@mnaoumov/obsidian-markdown-parser';

Signature:

function linkReferenceCheck(labels: ReadonlySet<string>): MarkdownConfig

Parameters:

Parameter Type Description
labels ReadonlySet<string> The labels the document defines, normalized as CommonMark compares them (see collectLinkReferenceLabels).

Returns: MarkdownConfig — The extension.


Links to this page: