---
title: "Markdown Document Converter"
method: POST
path: "/v1/tools/convert_markdown_document"
tags: ["TODO_TAGS_REVIEW", "TODO_AP2_EXPORT_REVIEW"]
---

# Markdown Document Converter

`POST /v1/tools/convert_markdown_document`

## Request

- Base URL: `https://ainumbers.co`
- URL: `https://ainumbers.co/v1/tools/convert_markdown_document`
- Auth: none declared

Deterministic Markdown to HTML and plain text over a hand-rolled CommonMark subset (headings, bold/italic/code spans, fenced code, blockquotes, one-level lists, links, images as links, horizontal rules, GFM pipe tables). All raw HTML in the input is escaped, so the output is injection-safe. Returns html, plain_text, stats (headings, links, code_blocks, tables, words), and SHA-256 digests of the input, HTML, and plain text computed over exact UTF-8 bytes with no normalization. Feeds the conversion receipt builder. Zero network, zero PII.

**Tool URL:** https://ainumbers.co/chaingraph/art-189-markdown-document-converter.html

## Request body

- object
  - `markdown` unknown
  - `options` unknown, required

## Response `200`

Successful tool execution result

- object
  - `digest_basis` string
  - `html` string
  - `html_sha256` string
  - `input_sha256` string
  - `plain_text` string
  - `plain_text_sha256` string
  - `stats` object
    - `code_blocks` integer
    - `headings` integer
    - `links` integer
    - `tables` integer
    - `words` integer

---

[API](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite.md) · [All operations](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite/llms.txt) · [OpenAPI document](https://skmtc.dev/ainumbers/apis/ainumbers-co-fintech-intelligence-suite/revisions/b462e4f5bb28?raw)
