n8n AI Markdown to HTML: fragments and output fields
Configure Markdown conversion for the display contract and inspect headings and body.
Prepare existing text for display · Set mode, input and Destination Key · Inspect format before display
At a glance
This guide explains an AI workflow data task from official node documentation and checks public synthetic inputs locally. It does not run n8n, sign in or call a model API. Documented steps and local inspection are separate.
Input, conversion and checks
Prepare input
Inspect actual data, fields and prerequisites.
Select conversion
Choose the task mode and destination field.
Inspect output
Account for missing items and errors before continuing.
Prepare existing text for display
Input is existing Markdown, such as a heading and a paragraph of public text. Establish a string field first. The task converts format without generating content again. Determine whether the receiver expects an HTML fragment or a full document; conversion does not review links or content.
Set mode, input and Destination Key
Select Markdown to HTML, provide the text in Markdown and set Destination Key, which supports dot notation for nested fields. Complete HTML Document is disabled by default and produces a fragment; enabling it adds the declaration, html, body and head. Header Level Start defaults to 1; setting 2 maps a single # heading to h2.
Inspect format before display
The documentation recommends checking option interactions. Inspect the destination field, heading level, code blocks and links against the receiver contract before display. Only fixture text and a field checklist were inspected locally; the node and product renderer were not run. Stop publication when output format violates the contract.
Article sources
Original editorial content; official descriptions and checking suggestions are distinguished.