Skip to main content

Markdown block writer

Generate a Markdown file by appending text blocks one after the other. The optional header is written once at the top of the file, the separator is inserted between every pair of consecutive blocks (never before the first block or after the last one), and the optional footer is written once at the bottom of the file.

Example
// 1st input: "# Chapter 1\nOnce upon a time..."
// 2nd input: "# Chapter 2\nThe end."

// Configuration:
// Header: "# My book\n"
// Separator: "\n---\n"
// Footer: "\n(c) 2026"

// Output file:
# My book
# Chapter 1
Once upon a time...
---
# Chapter 2
The end.
(c) 2026

Parameters

Header

Markdown written once at the top of the produced file, before any block.

Separator

Markdown inserted between every pair of consecutive blocks (for example a horizontal rule or a blank line).

Footer

Markdown written once at the bottom of the produced file, after the last block.

Input

Textrequired

The text block to append to the Markdown file. Only text values are accepted: sending any other value type fails the run.