{
  "x402Version": 2,
  "id": 72492,
  "slug": "saylorinnovations-api-convert-markdown-to-html",
  "resource": "https://saylorinnovations.com/api/convert/markdown-to-html",
  "description": "Render Markdown to escaped, safe HTML with heading anchors, links, images and lists, plus the heading outline, link list, word count and reading time",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "html": {
        "type": "string",
        "description": "Rendered HTML with all input HTML escaped"
      },
      "headings": {
        "type": "array",
        "description": "Heading outline with level, text and anchor id"
      },
      "links": {
        "type": "array",
        "description": "Related links"
      },
      "images": {
        "type": "array",
        "description": "Images found with alt text and URL"
      },
      "words": {
        "type": "number",
        "description": "Words"
      },
      "reading_minutes": {
        "type": "number",
        "description": "Reading, in minutes"
      },
      "safe": {
        "type": "boolean",
        "description": "True because input HTML is escaped and unsafe URL schemes are dropped"
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      }
    },
    "required": [
      "html",
      "headings"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "markdown": "# Title\n\nHello **bold** and [site](https://example.com).\n\n- one\n- two"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "html": "<h1 id=\"title\">Title</h1>\n<p>Hello <strong>bold</strong> and <a href=\"https://example.com\" rel=\"noopener noreferrer\">site</a>.</p>\n<ul><li>one</li><li>two</li></ul>",
            "headings": [
              {
                "level": 1,
                "text": "Title",
                "id": "title"
              }
            ],
            "links": [
              {
                "text": "site",
                "url": "https://example.com"
              }
            ],
            "images": [],
            "words": 8,
            "reading_minutes": 0.1,
            "safe": true,
            "note": "Supports headings, emphasis, inline and fenced code, links, images, lists, blockquotes and rules. All HTML in the input is escaped, javascript: and data: URLs are dropped.",
            "source": "Markdown subset rendered on the supplied text"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "markdown": {
                    "type": "string",
                    "description": "Markdown text, up to 12000 characters"
                  }
                },
                "required": [
                  "markdown"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "html": {
                    "type": "string",
                    "description": "Rendered HTML with all input HTML escaped"
                  },
                  "headings": {
                    "type": "array",
                    "description": "Heading outline with level, text and anchor id"
                  },
                  "links": {
                    "type": "array",
                    "description": "Related links"
                  },
                  "images": {
                    "type": "array",
                    "description": "Images found with alt text and URL"
                  },
                  "words": {
                    "type": "number",
                    "description": "Words"
                  },
                  "reading_minutes": {
                    "type": "number",
                    "description": "Reading, in minutes"
                  },
                  "safe": {
                    "type": "boolean",
                    "description": "True because input HTML is escaped and unsafe URL schemes are dropped"
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  }
                },
                "required": [
                  "html",
                  "headings"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "convert markdown to html",
    "render markdown safely",
    "table of contents from markdown",
    "extract links from a markdown",
    "markdown reading time and word"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.953Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "markdown": {
          "type": "string",
          "description": "Markdown text, up to 12000 characters"
        }
      },
      "required": [
        "markdown"
      ]
    },
    "exampleResponse": {
      "html": "<h1 id=\"title\">Title</h1>\n<p>Hello <strong>bold</strong> and <a href=\"https://example.com\" rel=\"noopener noreferrer\">site</a>.</p>\n<ul><li>one</li><li>two</li></ul>",
      "headings": [
        {
          "level": 1,
          "text": "Title",
          "id": "title"
        }
      ],
      "links": [
        {
          "text": "site",
          "url": "https://example.com"
        }
      ],
      "images": [],
      "words": 8,
      "reading_minutes": 0.1,
      "safe": true,
      "note": "Supports headings, emphasis, inline and fenced code, links, images, lists, blockquotes and rules. All HTML in the input is escaped, javascript: and data: URLs are dropped.",
      "source": "Markdown subset rendered on the supplied text"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "markdown": "# Title\n\nHello **bold** and [site](https://example.com).\n\n- one\n- two"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "html": "<h1 id=\"title\">Title</h1>\n<p>Hello <strong>bold</strong> and <a href=\"https://example.com\" rel=\"noopener noreferrer\">site</a>.</p>\n<ul><li>one</li><li>two</li></ul>",
              "headings": [
                {
                  "level": 1,
                  "text": "Title",
                  "id": "title"
                }
              ],
              "links": [
                {
                  "text": "site",
                  "url": "https://example.com"
                }
              ],
              "images": [],
              "words": 8,
              "reading_minutes": 0.1,
              "safe": true,
              "note": "Supports headings, emphasis, inline and fenced code, links, images, lists, blockquotes and rules. All HTML in the input is escaped, javascript: and data: URLs are dropped.",
              "source": "Markdown subset rendered on the supplied text"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "markdown": {
                      "type": "string",
                      "description": "Markdown text, up to 12000 characters"
                    }
                  },
                  "required": [
                    "markdown"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "html": {
                      "type": "string",
                      "description": "Rendered HTML with all input HTML escaped"
                    },
                    "headings": {
                      "type": "array",
                      "description": "Heading outline with level, text and anchor id"
                    },
                    "links": {
                      "type": "array",
                      "description": "Related links"
                    },
                    "images": {
                      "type": "array",
                      "description": "Images found with alt text and URL"
                    },
                    "words": {
                      "type": "number",
                      "description": "Words"
                    },
                    "reading_minutes": {
                      "type": "number",
                      "description": "Reading, in minutes"
                    },
                    "safe": {
                      "type": "boolean",
                      "description": "True because input HTML is escaped and unsafe URL schemes are dropped"
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    }
                  },
                  "required": [
                    "html",
                    "headings"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/convert/markdown-to-html?markdown=%23%20Title%0A%0AHello%20**bold**%20and%20%5Bsite%5D(https%3A%2F%2Fexample.com).%0A%0A-%20one%0A-%20two",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "html": "string",
    "headings": [
      "value"
    ],
    "links": [
      "value"
    ],
    "images": [
      "value"
    ],
    "words": 0,
    "reading_minutes": 0,
    "safe": true,
    "note": "string",
    "source": "string"
  }
}