MD代码
## IoCs
### FileHash
13871a0ca072473e646f147c11c054ea
c37933ec8c2e986c78d70e1b5b5ec642
f5f147661da458e39d413ef9b62c7d3c
18363437744197efdfb779bad31b32ca
052d9d237c35b7cc1a0e4e76cadf3664
578d9f0ced02ee2f03ad3484628671d7
### IP
142.202.191.236
142.202.191.234
Python代码
# encoding = utf-8
import markdown
fileMarkDown = r'MarkDown.md'
fileTest = r'test.md'
fileHTML = r'HTML.html'
def MD2HTML(fileMarkDown):
with open(fileMarkDown, 'r', encoding='utf-8') as f:
text = f.read()
print(text)
html = markdown.markdown(text)
# print(html)
with open(fileHTML, 'w', encoding='utf-8') as f:
f.write(html)
if __name__ == '__main__':
MD2HTML(fileMarkDown)
print("执行完毕")
HTML代码
<h2>IoCs</h2>
<h3>FileHash</h3>
<p>13871a0ca072473e646f147c11c054ea
c37933ec8c2e986c78d70e1b5b5ec642
f5f147661da458e39d413ef9b62c7d3c
18363437744197efdfb779bad31b32ca
052d9d237c35b7cc1a0e4e76cadf3664
578d9f0ced02ee2f03ad3484628671d7</p>
<h3>IP</h3>
<p>142.202.191.236
142.202.191.234</p>
😑不满意😑
原因
导出的MarkDown没有保留换行
语雀换行
换行
未换行