Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
fd82afdaa4
10
CrossDown.py
10
CrossDown.py
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user