We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d07a386 commit 85a469bCopy full SHA for 85a469b
main.py
@@ -9,6 +9,7 @@ def format_contest_md(content: str) -> str:
9
res = re.findall(r"\[(.*?)\]\((.*?)\)", content)
10
for _, link in res:
11
num = link.split("/")[-2].split(".")[0]
12
+ num = int(num)
13
content = content.replace(link, f"./lc/{num}.md")
14
content = f"---\ncomments: true\n---\n\n" + content
15
return content
@@ -20,6 +21,7 @@ def format_contest_md_en(content: str) -> str:
20
21
22
23
24
25
26
27
0 commit comments