Skip to content

ObsidianSyntaxFlags

The constructs a parser can read, each turned on or off.

Import:

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

Signature:

export interface ObsidianSyntaxFlags

Properties

PropertyTypeDescription
autolinkLiteralbooleanGFM bare URLs: www.example.com, https://example.com and email addresses become links.
blockIdbooleanBlock ids: ^id at the end of a line.
calloutbooleanCallouts: a quote whose first line opens with [!type].
commentbooleanComments: %% inline, and comment blocks.
footnotebooleanFootnote references [^label] and footnote definitions [^label]:.
frontMatterbooleanFront matter: a first line of ---, up to the next line of ---.
highlightbooleanHighlights: ==text==.
inlineFootnotebooleanInline footnotes: ^[text].
internalLinkbooleanInternal links and embeds: [[target]] and ![[target]].
mathbooleanMath: $ inline, $$ display, and math blocks.
strikethroughbooleanGFM strikethrough, with two tildes only: ~~text~~.
tablebooleanGFM tables.
tagbooleanTags: #tag.
taskbooleanObsidian's task markers: a list item opening with [c] for any one character c. They replace GFM's task list items, which take only a space, x or X.

Links to this page: