TurboWarp Markdown

TurboWarp Markdown builds Markdown as immutable structured fragments. Blocks create escaped inline fragments, block fragments, lists, and sequences; final Markdown text is produced only by an explicit render block.

Core Flow

heading [1] [Sensor]
paragraph [temperature]
[heading result] followed by [paragraph result]
render Markdown [combined result]

Safety Model

Common Blocks

CategoryBlocks
Inlinetext, bold, italic, link, code
Blocksheading, paragraph, quote, codeBlock
ListslistItem, unorderedList, orderedList
Compositionconcat, render

HTTP Server Interoperability

For turbowarp-http-server, pass the rendered string as the response body and set Content-Type: text/markdown; charset=utf-8. The HTTP server does not need to depend on this package.

TypeScript API

The package also exports block-free builder functions from @kubohiroya/turbowarp-markdown, including text, bold, italic, link, heading, paragraph, quote, codeBlock, listItem, unorderedList, orderedList, concat, and render.

TurboWarp Markdown: complete block reference

All 19 blocks are documented below, including compatibility blocks and blocks available through optional features. Select a block to read its behavior, arguments, default values, and menu choices. Each block has a permanent link.

text [TEXT]

Creates escaped Markdown text.

Block type: REPORTER. Opcode: text. Permanent link

ArgumentTypeDefault valueMenu choices
TEXTSTRINGHello *world*

bold [CONTENT]

Creates bold inline Markdown content.

Block type: REPORTER. Opcode: bold. Permanent link

ArgumentTypeDefault valueMenu choices
CONTENTSTRINGimportant

italic [CONTENT]

Creates italic inline Markdown content.

Block type: REPORTER. Opcode: italic. Permanent link

ArgumentTypeDefault valueMenu choices
CONTENTSTRINGnote

link [CONTENT] URL [URL]

Creates a Markdown link with a conservatively validated destination.

Block type: REPORTER. Opcode: link. Permanent link

ArgumentTypeDefault valueMenu choices
CONTENTSTRINGTurboWarp
URLSTRINGhttps://turbowarp.org/

code [TEXT]

Creates inline code content.

Block type: REPORTER. Opcode: code. Permanent link

ArgumentTypeDefault valueMenu choices
TEXTSTRINGstatus

heading [LEVEL] [CONTENT]

Creates a heading with the level clamped to 1 through 6.

Block type: REPORTER. Opcode: heading. Permanent link

ArgumentTypeDefault valueMenu choices
LEVELNUMBER1
CONTENTSTRINGSensor

このブロックの固定入力編集と互換性

paragraph [CONTENT]

Creates a paragraph block.

Block type: REPORTER. Opcode: paragraph. Permanent link

ArgumentTypeDefault valueMenu choices
CONTENTSTRINGready

quote [CONTENT]

Creates a block quote.

Block type: REPORTER. Opcode: quote. Permanent link

ArgumentTypeDefault valueMenu choices
CONTENTSTRINGquoted

code block [TEXT] language [LANGUAGE]

Creates a fenced code block.

Block type: REPORTER. Opcode: codeBlock. Permanent link

ArgumentTypeDefault valueMenu choices
TEXTSTRINGconsole.log('ok')
LANGUAGESTRINGjs

list item [CONTENT]

Creates a list item fragment.

Block type: REPORTER. Opcode: listItem. Permanent link

ArgumentTypeDefault valueMenu choices
CONTENTSTRINGitem

unordered list [ITEMS]

Creates an unordered list from item fragments.

Block type: REPORTER. Opcode: unorderedList. Permanent link

ArgumentTypeDefault valueMenu choices
ITEMSSTRING

ordered list [ITEMS]

Creates an ordered list from item fragments.

Block type: REPORTER. Opcode: orderedList. Permanent link

ArgumentTypeDefault valueMenu choices
ITEMSSTRING

[LEFT] followed by [RIGHT]

Creates a new Markdown fragment sequence without mutating either input.

Block type: REPORTER. Opcode: concat. Permanent link

ArgumentTypeDefault valueMenu choices
LEFTSTRING
RIGHTSTRING

render Markdown [FRAGMENT]

Renders a Markdown fragment to final Markdown text without updating stored validation errors.

Block type: REPORTER. Opcode: render. Permanent link

ArgumentTypeDefault valueMenu choices
FRAGMENTSTRING

render Markdown with validation [FRAGMENT]

Validates a Markdown fragment, stores any validation errors, and renders final Markdown text.

Block type: REPORTER. Opcode: renderWithValidation. Permanent link

ArgumentTypeDefault valueMenu choices
FRAGMENTSTRING

last Markdown validation errors

Returns validation errors stored by the most recent render Markdown with validation block.

Block type: REPORTER. Opcode: lastValidationErrors. Permanent link

This block has no arguments.

last rendered Markdown has validation errors?

Reports whether the most recent validated Markdown render stored validation errors.

Block type: BOOLEAN. Opcode: lastRenderHasValidationErrors. Permanent link

This block has no arguments.

validate Markdown [FRAGMENT]

Returns simple validation diagnostics for a Markdown fragment.

Block type: REPORTER. Opcode: validateMarkdown. Permanent link

ArgumentTypeDefault valueMenu choices
FRAGMENTSTRING

Markdown [FRAGMENT] is valid?

Reports whether simple validation found no Markdown errors.

Block type: BOOLEAN. Opcode: isValidMarkdown. Permanent link

ArgumentTypeDefault valueMenu choices
FRAGMENTSTRING

Repository guide and examples

固定入力の編集

対応GUIの固定入力機能は既定OFFです。既存値は開いただけでは変更せず、reporter接続は評価・置換しません。新しい選択と有限JSON数値入力のみを検証して保存し、既存の補正・丸め処理を維持します。機能OFFで従来の編集へ戻せます。

対象入力・Schemaの正本・互換性・切戻し