Update CrossDown.py

This commit is contained in:
跨越晨昏 2024-08-28 15:51:41 +08:00 committed by GitHub
parent 87db7c91fe
commit f32a52ce7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -122,6 +122,14 @@ def main(text: str) -> str:
if __name__ == '__main__':
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:
html.write(cd)