API 개요로 돌아가기

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

요청 본문

POST 본문에 JSON으로 전송합니다.

NameTypeRequiredDescription
markdownstringrequiredThe Markdown source. Up to 1 MB of UTF-8.

응답 본문

성공 시 반환되는 JSON (HTTP 200).

NameTypeRequiredDescription
okbooleanrequiredTrue on success.
htmlstringrequiredThe 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.
브라우저에서 시도

무료 도구는 코드 작성 없이 동일한 결과를 제공합니다.

도구 열기