API & MCP

Everything a person can do on Wikinest Markdown to HTML, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Wikinest Markdown to HTML

Converts a Wikinest page written in Markdown into sanitised HTML: headings with anchors, tables, task lists, highlighted code, info/success/warning/error panels, expand sections, status lozenges, dates, mentions, [[page links]] and the table-of-contents and child-pages macros. It reports the outline, links that point nowhere and unsafe addresses it dropped.

Inputs of Wikinest Markdown to HTML
FieldTypeDefaultDescription
markdowntextarea—Page in Markdown. Wikinest Markdown: CommonMark and GitHub tables/task lists plus [[Page]] links, :::info panels, {status:green|Done}, {date:2026-11-24}, {{toc}} and {{children}}.
pageTitlestextarea—Existing page titles (optional, one per line). [[Links]] to these titles become links to <slug>.html; others are marked as missing pages.
childrentextarea—Child pages for {{children}} (optional, one per line)
tocLevelsinteger3Headings in the outline down to level
standalonebooleanfalseWhole HTML document with a stylesheet (light and dark)

Example request

Runbook with panels, a table, code and task lists

curl -X POST https://wikinestmarkdowntohtml.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"markdown":"# Runbook: api\n\n{status:green|Active} · Owner: @[Grace Hopper] · Last reviewed {date:2026-11-24}\n\n{{toc}}\n\n## Alerts\n| Alert | Meaning | First step |\n| --- | --- | --- |\n| High error rate | More than 2 % of requests fail | Check the latest deploy |\n\n## Diagnosis\n1. Check the [[Dashboards]] page\n2. Read the logs:\n\n```sh\njournalctl -u api --since \"15 min ago\"\n```\n\n:::warning Before you restart\nTell the on-call channel first. See [[Escalation]].\n:::\n\n## Recovery\n- [x] Restart the service\n- [ ] Write the incident note\n\n:::expand Older notes\nMoved from the old wiki.\n:::\n","pageTitles":"Dashboards\nOn-call rota","tocLevels":2}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "wikinest-markdown-to-html": { "type": "http", "url": "https://wikinestmarkdowntohtml.usefulweb.app/mcp" }
  }
}