Skip to content
Agentic Workflowdocs
v0.8.2Install free

nodes / builtin / datatransformation

Markdown

Convert HTML to Markdown, or Markdown to HTML

Data ExtensionWeb app

Convert HTML to Markdown, or Markdown to HTML.

workflow · article-to-markdown.awf 4 steps

Capture Article as Markdown: a workflow with 4 steps, starting with When Started and ending with Copy to clipboard.

Open in AWFlow

HTML to Markdown turns a web page’s markup into clean Markdown. It keeps headings, bold, italic and strikethrough, code, links, images, lists (including nested ones), quotes and tables. Scripts, styles and the page head are dropped.

Markdown to HTML turns Markdown (GitHub style, with tables) into HTML. Anything unsafe, such as scripts, is removed from the result.

The node runs once per incoming item and adds the converted text to it. Content of up to about 2 MB is accepted.

  • Before an AI node: raw HTML wastes a lot of the model’s budget on tags. Markdown keeps the structure the model needs at a fraction of the size.
  • Save a web page as readable notes, for example in a Notion page.
  • Turn an AI answer written in Markdown into HTML for an email or a web page.
  • To pick out specific values rather than convert the whole page, use HTML Extract instead.
SettingTypeWhat it does
Operation ChoiceWhich way to convert. Options: HTML to Markdown, Markdown to HTML. Default: HTML to Markdown
Content ValueThe HTML or Markdown to convert.
Source Field TextField holding the content, when the field above is left empty.
Keep Links ToggleKeep links as [text](url); when off, only the link text is kept. Default: On
Keep Images ToggleKeep images as ![alt](src); when off, images are dropped. Default: On
Keep Tables ToggleRender tables as Markdown tables; when off, cells become plain lines. Default: On
Include Input Fields ToggleKeep the incoming item’s fields alongside the result. Default: On
Put Result In Field TextField holding the converted text. Default: result

Give the content one of two ways: an expression in Content, such as {{ $input.data }}, or a field name in Source Field, such as data. Content wins when both are filled. Source Field accepts dots for nested fields.

Keep Links, Keep Images and Keep Tables only affect HTML to Markdown. Turning Keep Images off is a good way to shrink text for an AI node.

  • Output

Each item comes out with the converted text in Put Result In Field (result by default). With Include Input Fields off, the item holds only that field. Read it downstream with {{ $input.result }}.

None. This node needs no connection and has no slots for other nodes.

  1. Get HTML from Link fetches an article page.
  2. Markdown with Operation HTML to Markdown, Source Field set to the field that holds the HTML, and Keep Images off.
  3. Summarization with Text {{ $input.result }}.
  • “No content to convert. Fill in the Content field, or name the field holding it.” Both Content and Source Field are empty. Fill in one of them.
  • “Field “…” does not exist on the incoming item.“ Source Field names a field the item does not have. Check the spelling against the previous node’s output.
  • “Input is … bytes, larger than the 2000000-byte limit this node will parse.” The content is over about 2 MB. Extract the part you need first with HTML Extract.
  • The Markdown is mostly menus and footers. The node converts the whole page. Narrow it first with HTML Extract (Return HTML) on the main content, for example article.
Copy any article as clean Markdown beginner · 3 min No setup
Edit page

Last updated:

Was this page useful?
Ask Aria about Markdown