markdown-render
POST1 رصيدRenders GitHub-flavored Markdown to either sanitized HTML or plain text. The HTML output is sanitized server-side (no script tags, no inline event handlers).
نقطة النهاية
POST https://x114.org/api/v1/markdown-renderجسم الطلب
أرسل كـ JSON في جسم POST.
| Name | Type | Required | Description |
|---|---|---|---|
| markdown | string | required | The Markdown source. Up to 1 MB of UTF-8. |
جسم الاستجابة
JSON المُعاد عند النجاح (HTTP 200).
| Name | Type | Required | Description |
|---|---|---|---|
| ok | boolean | required | True on success. |
| html | string | required | The rendered HTML (GitHub-flavored Markdown, raw HTML disabled). |
مثال
curl -X POST https://x114.org/api/v1/markdown-render \
-H "Authorization: Bearer sk_..." \
-H "Content-Type: application/json" \
-d '{"markdown":"# Hello\n\n**world**"}'ملاحظات
- Raw HTML inside the Markdown source is stripped before rendering — script tags and inline event handlers cannot reach the output.