Raw Markdown Source (rawMarkdownSource)String (RFC 7763 text/markdown)
The raw UTF-8 input document stream adhering to CommonMark or GitHub Flavored Markdown (GFM) grammar. Lexer tokenization processes characters in deterministic O(n) linear time with bounded lookahead, isolating frontmatter blocks, block-level structures, and inline spans within a sandboxed Web Worker execution context.
Default: Auto
Markdown Dialect Mode (markdownDialectMode)Enum [gfm | commonmark | minimal]
Governs lexer specification and AST construction: 'gfm' applies GitHub Flavored Markdown extensions (pipe tables, strikethrough, autolinks, task list items); 'commonmark' enforces strict CommonMark 0.31.2 specification compliance; 'minimal' parses standard blockquote and header tokens while disallowing complex nested extensions.
Default: gfm
HTML Export Target Mode (htmlExportMode)Enum [fragment | standalone | email-inline]
Configures the serialization scope of compiled DOM nodes: 'fragment' emits clean semantic inner HTML elements (<article>); 'standalone' compiles a valid W3C HTML5 document with <!DOCTYPE html>, metadata, and viewport tags; 'email-inline' processes CSS cascade rules into inline style attributes conforming to RFC 5322 email client rendering engines.
Default: fragment
XSS Sanitization Policy (xssSanitizationPolicy)Enum [strict-sanitized | trusted-raw]
Enforces recursive AST/DOM node tree traversal sanitization using DOMPurify and browser DOMParser sandboxing. Whitelists safe URI schemes (http:, https:, mailto:), strips script execution vectors, iframes, object embeds, and inline DOM event attributes (onload, onerror, onclick) to prevent Stored XSS and CSP violations.
Default: strict-sanitized
Heading Anchor Slug Policy (headingAnchorPolicy)Enum [kebab-slug | numeric-id | none]
Controls automated deterministic generation of id attributes on <h1>–<h6> heading tags. 'kebab-slug' transforms header text into lowercase alphanumeric ASCII hyphens conforming to RFC 3986 URI fragment standards for deep intra-document linking; 'numeric-id' assigns monotonic sequential identifiers.
Default: kebab-slug
External Link Security Policy (externalLinkPolicy)Boolean
Injects rel="noopener noreferrer" and target="_blank" onto all external anchor (<a>) nodes whose href hostname differs from window.location.hostname, neutralizing reverse tab-nabbing attacks via window.opener exploit vectors.
Default: true
Frontmatter Extraction Policy (frontmatterExtraction)Boolean
Isolates and strips leading document metadata delimited by triple-hyphen (---) or triple-plus (+++) fences before markdown compilation. Serializes structured YAML/TOML key-value pairs into metadata objects while preventing raw frontmatter delimiter leakage into the HTML body.
Default: true
Smart Typography & Punctuation (smartTypography)Boolean
Executes deterministic linear regex replacements converting straight ASCII quotes into typographic curly quotes (“/”, ‘/’), double/triple hyphens into en/em dashes (–/—), and consecutive periods into unicode ellipses (…) without mutating code spans.
Default: true