All guides

n8n AI Markdown to HTML: fragments and output fields

Configure Markdown conversion for the display contract and inspect headings and body.

AINavWritten / Updated Sources checked
On this page

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

  1. Prepare input

    Inspect actual data, fields and prerequisites.

  2. Select conversion

    Choose the task mode and destination field.

  3. Inspect output

    Account for missing items and errors before continuing.

Establish input and receiver contracts before downstream work.

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.

  1. n8n · Official sources
    View details