From b4ef9defdc481fbe4512db69cd12ed1913bca710 Mon Sep 17 00:00:00 2001 From: shyn Date: Fri, 17 Nov 2023 15:54:47 +0800 Subject: [PATCH] =?UTF-8?q?markdown=20=E6=B8=B2=E6=9F=93=E4=BD=BF=E7=94=A8?= =?UTF-8?q?gfm=E6=A8=A1=E5=BC=8F=EF=BC=8C=E6=94=AF=E6=8C=81GitHub=E7=9A=84?= =?UTF-8?q?=E6=89=80=E6=9C=89=E8=AF=AD=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #6 https://github.com/Meekdai/Gmeek/issues/6#issuecomment-1737281658 --- Gmeek.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gmeek.py b/Gmeek.py index d51b18f..595a6a8 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -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