Alle Tools›Markdown-Editor
Entwickler-Tools

Markdown-Editor

markdown-editor

Use Markdown Editor through the Zavilo SDK. Check input limits, parameters, output and supported modes below.

H · HeadlessE · Embedded
Tool-IDmarkdown-editor
Version1
AusführungCLIENT
ModiHeadless, Embedded

Schnellzugriff

Eingabedateien 0–1Ausgabedateien 1–2

Eingabe

Zulässige Eingabeformate und Dateianzahl für dieses Tool.

Eingabetypfile-or-data
Dateianzahl0 – 1
Zulässige MIME-Typentext/markdown, text/plain

Parameter

Diese Werte über request.options übergeben.

Parameter Typ Erforderlich Standard Zulässig / Bereich Beschreibung
output enum Optional html html | markdown | both Generated file output. html creates an HTML file, markdown returns Markdown, both returns both files.
sanitize boolean Optional true — Sanitize rendered HTML with DOMPurify before returning or exporting it.
gfm boolean Optional true — Enable GitHub-Flavored Markdown features such as tables and task-list syntax.
includeStyles boolean Optional true — Wrap HTML output in a standalone document with simple readable CSS.
documentTitle string Optional Markdown Document — HTML document title used when includeStyles is enabled.

Ausgabe

Nach erfolgreicher Verarbeitung zurückgegebenes Ergebnisformat.

Typfiles+data
Dateianzahl1 – 2
Ausgabe-MIMEtext/html, text/markdown
Metadatawords, characters, lines, sanitized
ZIP-ArchivNicht unterstützt

Grundlegende Verwendung

Unterstützten Integrationsmodus wählen und den erzeugten Starter-Code kopieren.

Headless

const result = await client.run("markdown-editor", {
  
  options: { output: "html", sanitize: true, gfm: true, includeStyles: true }
});
console.log(result.files, result.data, result.metadata);

Embedded

await client.mount({ tool: "markdown-editor", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.