The NodeHtmlMarkdownOptions interface allows you to customize the output format and parsing behavior.
Key options include:
preferNativeParser: Use native window.DOMParser if available (default: false).codeFence: The character used for code block fences (default: ```).bulletMarker: The character used for bullets (default: *).codeBlockStyle: Set to 'indented' or 'fenced' (default: 'fenced').emDelimiter, strongDelimiter, strikeDelimiter: Custom delimiters for emphasis, strong, and strike (defaults: _, **, ~~).ignore: An array of element names to be ignored (does not parse children).blockElements: An array of elements to be treated as blocks (surrounded with blank lines).maxConsecutiveNewlines: Limits consecutive newlines (default: 3).keepDataImages: If true, keeps images with data: URI (up to 1MB each).useLinkReferenceDefinitions: If true, moves URLs to the bottom using link reference definitions.useInlineLinks: If true, wraps URLs in < > instead of []() syntax (default: true).
export interface NodeHtmlMarkdownOptions {
preferNativeParser: boolean,
codeFence: string,
bulletMarker: string,
codeBlockStyle: 'indented' | 'fenced',
emDelimiter: string,
strongDelimiter: string,
strikeDelimiter: string,
ignore?: string[],
blockElements?: string[],
maxConsecutiveNewlines: number,
lineStartEscape: [ pattern: RegExp, replacement: string ],
globalEscape: [ pattern: RegExp, replacement: string ],
textReplace?: [ pattern: RegExp, replacement: string ][],
keepDataImages?: boolean,
useLinkReferenceDefinitions?: boolean,
useInlineLinks?: boolean
}