Merge remote-tracking branch 'origin/main'

This commit is contained in:
跨越晨昏 2024-08-29 12:37:16 +08:00
commit fd82afdaa4
2 changed files with 11 additions and 2 deletions

View File

@ -184,7 +184,15 @@ def main(origen: str):
if __name__ == '__main__': if __name__ == '__main__':
with open('test.md', encoding='utf-8') as test: with open('test.md', encoding='utf-8') as test:
cd = main(test.read()) cd = f"""<!DOCTYPE html>
<html>
<head>
<title>页面标题</title>
</head>
<body>
{main(test.read())}
</body>
</html>"""
with open('test.html', 'w', encoding='utf-8') as html: with open('test.html', 'w', encoding='utf-8') as html:
html.write(f"""<!DOCTYPE html> html.write(f"""<!DOCTYPE html>
<html lang="zh-CN"> <html lang="zh-CN">

View File

@ -1,2 +1,3 @@
# MarkDown.CD # CrossDown
自制的markdown添加了一些自定义的语法 自制的markdown添加了一些自定义的语法
# 注释