Help us understand the problem. What is going on with this article?

GitHub Markdown APIの使い方

リクエストURL

https://api.github.com/markdown/raw

ヘッダ

ヘッダ
Content-Type text/plain

あとはデータにマークダウンを渡してPOSTするだけ。

curlを使った例

curl -X POST https://api.github.com/markdown/raw -H 'Content-Type: text/plain' -d '# Hello World'
# => <h1>
#    <a id="user-content-hello-world" class="anchor" href="#hello-world" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Hello World</h1>

Golangを使った例

【Go】GitHub Markdown APIを叩いてみる - Qiita

おわりに

データをJSON形式で渡してオプションを指定する方法もあるけど、正直上記のもので十分なので今回は割愛。
知りたい方は下記参考リンクを参照。

参考

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away