[+] Parse markdown
This commit is contained in:
+4
-2
@@ -1,14 +1,16 @@
|
||||
import markdown
|
||||
|
||||
from constants import SRC_DIR
|
||||
from utils import read
|
||||
|
||||
|
||||
def generate_report() -> str:
|
||||
"""
|
||||
Create a HTML report
|
||||
Do data visualization and generate a HTML report
|
||||
|
||||
:return: HTML
|
||||
"""
|
||||
return read(f'{SRC_DIR}/report_document.md')
|
||||
return markdown.markdown(read(f'{SRC_DIR}/report_document.md'))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user