/** * Markdown Node - Version 1 * Discriminator: mode=htmlToMarkdown */ /** Convert data from HTML to Markdown */ export type MarkdownV1HtmlToMarkdownParams = { mode: 'htmlToMarkdown'; /** * The HTML to be converted to markdown */ html?: string | Expression | PlaceholderValue; /** * The field to put the output in. Specify nested fields using dots, e.g."level1.level2.newKey". * @default data */ destinationKey?: string | Expression | PlaceholderValue; /** * Options * @default {} */ options?: { /** Specify bullet marker, default * * @default * */ bulletMarker?: string | Expression | PlaceholderValue; /** Specify code block fence, default ``` * @default ``` */ codeFence?: string | Expression | PlaceholderValue; /** Specify emphasis delimiter, default _ * @default _ */ emDelimiter?: string | Expression | PlaceholderValue; /** Setting this will override the default escape settings, you might want to use textReplace option instead * @default {} */ globalEscape?: { /** Value */ value?: { /** RegEx for pattern */ pattern?: string | Expression | PlaceholderValue; /** String replacement */ replacement?: string | Expression | PlaceholderValue; }; }; /** Supplied elements will be ignored (ignores inner text does not parse children) * @hint Comma separated elements */ ignore?: string | Expression | PlaceholderValue; /** Whether to keep images with data: URI (Note: These can be up to 1MB each), e.g. <img src="data:image/gif;base64,R0lGODlhEAAQAMQAAORHHOVSK......0o/"> * @default false */ keepDataImages?: boolean | Expression; /** Setting this will override the default escape settings, you might want to use textReplace option instead * @default {} */ lineStartEscape?: { /** Value */ value?: { /** RegEx for pattern */ pattern?: string | Expression | PlaceholderValue; /** String replacement */ replacement?: string | Expression | PlaceholderValue; }; }; /** Specify max consecutive new lines allowed * @default 3 */ maxConsecutiveNewlines?: number | Expression; /** Whether to Place URLS at the bottom and format links using link reference definitions * @default false */ useLinkReferenceDefinitions?: boolean | Expression; /** Specify strong delimiter, default ** * @default ** */ strongDelimiter?: string | Expression | PlaceholderValue; /** Specify style for code block, default "fence" * @default fence */ codeBlockStyle?: 'fence' | 'indented' | Expression; /** User-defined text replacement pattern (Replaces matching text retrieved from nodes) * @default [] */ textReplace?: { /** Values */ values?: Array<{ /** RegEx for pattern */ pattern?: string | Expression | PlaceholderValue; /** String replacement */ replacement?: string | Expression | PlaceholderValue; }>; }; /** Supplied elements will be treated as blocks (surrounded with blank lines) * @hint Comma separated elements */ blockElements?: string | Expression | PlaceholderValue; }; }; export type MarkdownV1HtmlToMarkdownNode = { type: 'n8n-nodes-base.markdown'; version: 1; config: NodeConfig; };