Markdown to HTML

Convert Markdown text to HTML

Overview

This node converts Markdown text into HTML. It is useful for scenarios where you need to transform Markdown content into HTML format for web display, email templates, or other HTML-based outputs. For example, you can input Markdown directly or read it from an incoming data field, then generate the corresponding HTML to be used downstream in your workflow.

Use Case Examples

  1. Convert a Markdown string '# Hello, world!' into HTML for rendering on a webpage.
  2. Read Markdown content from an input item field and convert it to HTML for email body content.

Properties

Name Meaning
Source Determines whether the Markdown text is provided directly or read from an input item field.
Markdown The Markdown text to convert to HTML, used when Source is 'Direct Text'.
Markdown Field The name of the field in the incoming item that contains the Markdown text, used when Source is 'Input Field'.
Output Field The name of the field where the generated HTML will be stored.
Linkify Automatically detect and convert plain URLs in the Markdown text into clickable links.
Breaks Convert newlines in the Markdown text to HTML tags.
HTML Input Enable raw HTML tags within the Markdown input to be processed and included in the output.
Typographer Enable language-neutral replacements and beautification of quotes and other typographic elements.

Output

JSON

- The generated HTML content from the Markdown input, stored in the specified output field.

Dependencies

  • markdown-it library

Troubleshooting

  • If the Markdown field specified does not exist in the input item, the output HTML will be empty for that item.
  • Ensure that the Markdown text is valid; malformed Markdown may produce unexpected HTML output.
  • If raw HTML is not rendering as expected, check the 'HTML Input' option to enable or disable raw HTML processing.

Links

Discussion