ObsidianSyntaxFlags
The constructs a parser can read, each turned on or off.
Import:
import type { ObsidianSyntaxFlags } from '@mnaoumov/obsidian-markdown-parser';Signature:
export interface ObsidianSyntaxFlagsProperties
| Property | Type | Description |
|---|---|---|
| autolinkLiteral | boolean | GFM bare URLs: www.example.com, https://example.com and email addresses become links. |
| blockId | boolean | Block ids: ^id at the end of a line. |
| callout | boolean | Callouts: a quote whose first line opens with [!type]. |
| comment | boolean | Comments: %% inline, and comment blocks. |
| footnote | boolean | Footnote references [^label] and footnote definitions [^label]:. |
| frontMatter | boolean | Front matter: a first line of ---, up to the next line of ---. |
| highlight | boolean | Highlights: ==text==. |
| inlineFootnote | boolean | Inline footnotes: ^[text]. |
| internalLink | boolean | Internal links and embeds: [[target]] and ![[target]]. |
| math | boolean | Math: $ inline, $$ display, and math blocks. |
| strikethrough | boolean | GFM strikethrough, with two tildes only: ~~text~~. |
| table | boolean | GFM tables. |
| tag | boolean | Tags: #tag. |
| task | boolean | Obsidian'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: