Skip to content

Commit 28d2cb9

Browse files
committed
Update markdown renderer
1 parent c875780 commit 28d2cb9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Diff for: tf_oss_dashboard/dashboard.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import arrow
66
import itertools
77
import json
8-
import pycmarkgfm
8+
import cmarkgfm
99
import pypugjs
1010
import re
1111
import sys
@@ -39,8 +39,8 @@
3939
d["messageBody"] = "\n".join(d["messageBody"].splitlines()[0:-1])
4040
if "PiperOrigin-RevId" in d["message"]:
4141
d["message"] = "\n".join(d["message"].splitlines()[0:-1])
42-
record["commit_body"] = pycmarkgfm.gfm_to_html(d["messageBody"])
43-
record["commit_message"] = pycmarkgfm.gfm_to_html(d["message"])
42+
record["commit_body"] = cmarkgfm.github_flavored_markdown_to_html(d["messageBody"])
43+
record["commit_message"] = cmarkgfm.github_flavored_markdown_to_html(d["message"])
4444
record["date_human"] = record["date"].to('US/Pacific').format("ddd, MMM D [at] h:mma ZZZ")
4545
if d["statusCheckRollup"] is None:
4646
continue
@@ -126,7 +126,7 @@
126126
js = f.read()
127127

128128
with open("help.md", "r") as f:
129-
helptext = pycmarkgfm.gfm_to_html(f.read())
129+
helptext = cmarkgfm.github_flavored_markdown_to_html(f.read())
130130

131131
env = Environment(
132132
loader=FileSystemLoader('.'),

Diff for: tf_oss_dashboard/requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ arrow
33
markdown
44
pypugjs
55
jinja2
6+
cmarkgfm

0 commit comments

Comments
 (0)