80trust / 100

Markdown

by Tanod utilpeek in Weather & location

x402 APIPassing, checked 3 h ago

utilpeek (Tanod) Markdown to HTML: CommonMark or GFM rendered and sanitized (allow-list).

POST https://tanod.dev/v1/markdown

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
275 ms typical, 467 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://tanod.dev/v1/markdown" \
  -H "content-type: application/json" \
  -d '{"flavor":"gfm","markdown":"# Title\n\n- [x] done\n- [ ] todo\n\n| a | b |\n|---|---|\n| 1 | 2 |"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Ftanod.dev%2Fv1%2Fmarkdown
const res = await pay("https://tanod.dev/v1/markdown", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"flavor":"gfm","markdown":"# Title\n\n- [x] done\n- [ ] todo\n\n| a | b |\n|---|---|\n| 1 | 2 |"}),
});
console.log(await res.json());

Example input

{
  "flavor": "gfm",
  "markdown": "# Title\n\n- [x] done\n- [ ] todo\n\n| a | b |\n|---|---|\n| 1 | 2 |"
}

Example output

{
  "flavor": "gfm",
  "html": "<h1>Title</h1>\n<ul class=\"contains-task-list\">\n<li class=\"task-list-item\"><input class=\"task-list-item-checkbox\" checked=\"checked\" type=\"checkbox\" disabled=\"disabled\"> done</li>\n<li class=\"task-list-item\"><input class=\"task-list-item-checkbox\" type=\"checkbox\" disabled=\"disabled\"> todo</li>\n</ul>\n<table>\n<thead>\n<tr>\n<th>a</th>\n<th>b</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>1</td>\n<td>2</td>\n</tr>\n</tbody>\n</table>\n",
  "html_chars": 414,
  "removed_by_sanitizer": false,
  "sanitized": true,
  "source": {
    "library": "markdown-it-py + nh3 (ammonia)",
    "license": "MIT"
  }
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402293 ms$0.001
7 h agoPassed402368 ms$0.001
11 h agoPassed402467 ms$0.001
14 h agoPassed402275 ms$0.001
18 h agoPassed4021.2 s$0.001
21 h agoPassed402271 ms$0.001
25 h agoPassed402262 ms$0.001
30 h agoPassed402270 ms$0.001