Ferramentas de desenvolvedor
Editor Markdown
markdown-editor
Use Markdown Editor through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Ações rápidas
Arquivos de entrada 0–1Arquivos de saída 1–2
Entrada
Formatos de entrada e quantidade de arquivos aceitos por esta Tool.
| Tipo de entrada | file-or-data |
|---|---|
| N.º de arquivos | 0 – 1 |
| MIME aceitos | text/markdown, text/plain |
Parâmetros
Passe estes valores por request.options.
| Parâmetro | Tipo | Obrigatório | Padrão | Valores / Faixa | Descrição |
|---|---|---|---|---|---|
output |
enum | Opcional | html |
html | markdown | both | Generated file output. html creates an HTML file, markdown returns Markdown, both returns both files. |
sanitize |
boolean | Opcional | true |
— | Sanitize rendered HTML with DOMPurify before returning or exporting it. |
gfm |
boolean | Opcional | true |
— | Enable GitHub-Flavored Markdown features such as tables and task-list syntax. |
includeStyles |
boolean | Opcional | true |
— | Wrap HTML output in a standalone document with simple readable CSS. |
documentTitle |
string | Opcional | Markdown Document |
— | HTML document title used when includeStyles is enabled. |
Saída
Formato do resultado retornado após o processamento.
| Tipo | files+data |
|---|---|
| N.º de arquivos | 1 – 2 |
| MIME de saída | text/html, text/markdown |
| Metadata | words, characters, lines, sanitized |
| Arquivo ZIP | Não suportado |
Uso básico
Escolha um modo suportado e copie o código inicial gerado.
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.