Markdown & HTML
Converts between Markdown and HTML:
- Markdown to HTML — AI models write Markdown; turn it into HTML for an e-mail (Send Email with an HTML body) or a web page.
- HTML to Markdown — shrink a web page or HTML e-mail into tidy Markdown, ideal to hand to an AI step.
- HTML to plain text — the readable text only, e.g. for a chat message or an SMS.
Parameters
| Name | Shown for | Default | Description |
|---|---|---|---|
Convert (operation) | all | Markdown to HTML | markdownToHtml, htmlToMarkdown or htmlToText. |
Text (value) | all | — | The Markdown or HTML, or a file holding it (up to 10 MB). |
Keep HTML inside the Markdown (allowHtml) | Markdown to HTML | Off | Off: HTML tags written in the Markdown appear as text, so the result is safe to send. Turn on only for Markdown you wrote yourself. |
Page address (baseUrl) | HTML to Markdown | — | Optional. The address the HTML came from, so relative links (/about) become full addresses. |
Ports
| Port | Description |
|---|---|
main (input) | The step(s) it runs after. |
output | { result } — always text. |
Output
{ "result": "<h1 id=\"weekly-report\">Weekly report</h1>\n<p>All <strong>green</strong>.</p>\n" }
What gets converted
Markdown to HTML supports GitHub-style Markdown: headings, bold/italic, links, images, lists, task lists
(- [x]), tables, fenced code blocks, strikethrough, footnotes and automatic links. The result is an HTML fragment
(no <html>/<body> wrapper).
HTML to Markdown keeps headings, paragraphs, bold/italic/strikethrough, links, images, nested lists, quotes,
tables (as Markdown tables) and code blocks (with their language). Scripts, styles, forms and embedded media are
dropped. Characters that mean something in Markdown (*, _, [) are escaped.
HTML to plain text keeps paragraphs and line breaks, writes list items as - item and table cells separated by
tabs, and drops everything else.
Example
E-mail an AI-written summary as formatted HTML:
- AI Text — "Summarise this week's orders as a short Markdown report"
- Markdown & HTML — Text
{{ $nodes['AI Text'].text }} - Send Email — HTML body
{{ $nodes['Markdown & HTML'].result }}
Notes
- Links to
javascript:,vbscript:,data:andfile:addresses are replaced with#when converting Markdown to HTML (embeddeddata:image/…pictures are kept). - To read values out of a web page rather than convert all of it, use Extract from Web Page.