Skip to content

Markdown

Node: markdown · Full type: n8n-nodes-base.markdown · Version: 1

Parameters

Parameter Type Default Details
mode options "htmlToMarkdown" markdownToHtml, htmlToMarkdown
html string "" required
markdown string "" required
destinationKey string "data" required
options collection {} keys: bulletMarker, codeFence, emDelimiter, globalEscape, ignore, keepDataImages, ...

options children:

Parameter Type Default Details
bulletMarker string "*"
codeFence string "```"
emDelimiter string "_"
globalEscape fixedCollection {} groups: value
ignore string ""
keepDataImages boolean false
lineStartEscape fixedCollection {} groups: value
maxConsecutiveNewlines number 3
useLinkReferenceDefinitions boolean false
strongDelimiter string "**"
codeBlockStyle options "fence" fence, indented
textReplace fixedCollection [] groups: values
blockElements string ""

Example

NODE "markdown" AS "Markdown" {
  html: {{ $json.html }},
  markdown: {{ $json.markdown }},
  destinationKey: {{ $json.destinationKey }}
}