mirror of
https://github.com/iSECPartners/LibTech-Auditing-Cheatsheet.git
synced 2026-04-18 03:00:25 -04:00
15 lines
376 B
Python
Executable File
15 lines
376 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import markdown
|
|
|
|
f_in = open('README.md', 'r')
|
|
guidelines = "".join(f_in.readlines())
|
|
|
|
md = markdown.Markdown(safe_mode='escape', extensions=['urlize'])
|
|
|
|
html = md.convert(guidelines)
|
|
html = html.replace('<true_pre>', '<pre>')
|
|
html = html.replace('</true_pre>', '</pre>')
|
|
|
|
f_out = open('guidelines.html', 'w')
|
|
f_out.write(html) |