diff --git a/Gmeek.py b/Gmeek.py index a2f4454..ebc80e1 100644 --- a/Gmeek.py +++ b/Gmeek.py @@ -8,6 +8,7 @@ import shutil import urllib import requests import argparse +import html from github import Github from xpinyin import Pinyin from feedgen.feed import FeedGenerator @@ -158,6 +159,9 @@ class GMEEK(): f'color: var(--fgColor-{style},var(--color-{style}-fg));}}' ) + if '##{"html":' in post_body: + post_body=re.sub(r'##\{"html":"(.*?)"\}##',lambda x: html.unescape(x.group(1)),post_body,flags=re.DOTALL) + postBase["postTitle"]=issue["postTitle"] postBase["postUrl"]=self.blogBase["homeUrl"]+"/"+issue["postUrl"] postBase["description"]=issue["description"]