Merge pull request #9 from shyn/patch-1

markdown 渲染使用gfm模式,支持GitHub的所有语法
This commit is contained in:
Meekdai 2023-11-17 16:21:44 +08:00 committed by GitHub
commit a38123450a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ class GMEEK():
return user.get_repo(repo)
def markdown2html(self,mdstr):
payload = {"text": mdstr, "mode": "markdown"}
payload = {"text": mdstr, "mode": "gfm"}
ret=requests.post("https://api.github.com/markdown", json=payload,headers={"Authorzation":"token {}".format(self.options.github_token)})
if ret.status_code==200:
return ret.text