markdown.json•3.59 kB
{
"nodeType": "n8n-nodes-base.markdown",
"displayName": "Markdown",
"description": "Convert data between Markdown and HTML",
"version": 1,
"properties": [
{
"name": "mode",
"displayName": "Mode",
"type": "options",
"default": "htmlToMarkdown",
"description": "Convert data from Markdown to HTML",
"options": [
{
"name": "Markdown to HTML",
"value": "markdownToHtml",
"description": "Convert data from Markdown to HTML"
},
{
"name": "HTML to Markdown",
"value": "htmlToMarkdown",
"description": "Convert data from HTML to Markdown"
}
]
},
{
"name": "html",
"displayName": "HTML",
"type": "string",
"default": "",
"description": "The HTML to be converted to markdown",
"required": true,
"displayOptions": {
"show": {
"mode": [
"htmlToMarkdown"
]
}
}
},
{
"name": "markdown",
"displayName": "Markdown",
"type": "string",
"default": "",
"description": "The Markdown to be converted to html",
"required": true,
"displayOptions": {
"show": {
"mode": [
"markdownToHtml"
]
}
}
},
{
"name": "destinationKey",
"displayName": "Destination Key",
"type": "string",
"default": "data",
"description": "The field to put the output in. Specify nested fields using dots, e.g.\"level1.level2.newKey\".",
"placeholder": "",
"required": true,
"displayOptions": {
"show": {
"mode": [
"markdownToHtml",
"htmlToMarkdown"
]
}
}
},
{
"name": "options",
"displayName": "Options",
"type": "collection",
"default": {},
"description": "Specify bullet marker, default *",
"placeholder": "Add option",
"options": [
{
"name": "bulletMarker",
"displayName": "Bullet Marker",
"type": "string",
"default": "*",
"description": "Specify bullet marker, default *"
},
{
"name": "codeFence",
"displayName": "Code Block Fence",
"type": "string",
"default": "```",
"description": "Specify code block fence, default ```"
},
{
"name": "emDelimiter",
"displayName": "Emphasis Delimiter",
"type": "string",
"default": "_",
"description": "Specify emphasis delimiter, default _"
}
],
"displayOptions": {
"show": {
"mode": [
"htmlToMarkdown"
]
}
}
}
],
"credentialsConfig": [
{
"name": "mode",
"required": false
},
{
"name": "html",
"required": true
},
{
"name": "ignore",
"required": false
},
{
"name": "maxConsecutiveNewlines",
"required": false
},
{
"name": "textReplace",
"required": false
},
{
"name": "blockElements",
"required": false
},
{
"name": "options",
"required": false
}
],
"io": {
"inputs": [
"Main"
],
"outputs": [
"Main"
],
"outputNames": [],
"hints": {}
},
"wiring": {
"role": "generic",
"requires": [],
"optional": [],
"consumedBy": [],
"consumes": [
"Main"
],
"produces": [
"Main"
]
}
}