1 parent 566c23b commit 0f19ddaCopy full SHA for 0f19dda
1 file changed
python3/github-repo-summary.py
@@ -14,6 +14,10 @@
14
args = parser.parse_args()
15
github = Github(os.getenv("GITHUB_TOKEN"))
16
17
+def sanitize_for_md(s):
18
+ s = s.replace("*","\*")
19
+ return s
20
+
21
print(
22
"Generated on {}, see the Markdown source of this file for more details.\n".format(
23
time.strftime("%Y-%m-%d")
@@ -30,6 +34,6 @@
30
34
content = " | ".join([
31
35
"[{}]({})".format(r.full_name,r.html_url),
32
36
str(r.stargazers_count),
33
- r.description
37
+ sanitize_for_md(r.description)
38
])
39
print(content)
0 commit comments