Spaces:
Sleeping
Sleeping
Update helper_functions_api.py
Browse files- helper_functions_api.py +4 -4
helper_functions_api.py
CHANGED
|
@@ -5,12 +5,12 @@ from jinja2 import Template
|
|
| 5 |
import re
|
| 6 |
import os
|
| 7 |
import hrequests
|
|
|
|
|
|
|
| 8 |
|
| 9 |
def md_to_html(md_text):
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
html_content = markdown_renderer(md_text)
|
| 13 |
-
return html_content.replace('\n', '')
|
| 14 |
|
| 15 |
####------------------------------ OPTIONAL--> User id and persistant data storage-------------------------------------####
|
| 16 |
from datetime import datetime
|
|
|
|
| 5 |
import re
|
| 6 |
import os
|
| 7 |
import hrequests
|
| 8 |
+
import markdown
|
| 9 |
+
|
| 10 |
|
| 11 |
def md_to_html(md_text):
|
| 12 |
+
html_content = markdown.markdown(md_text,extensions=["extra"])
|
| 13 |
+
return html_content #.replace('\n', '')
|
|
|
|
|
|
|
| 14 |
|
| 15 |
####------------------------------ OPTIONAL--> User id and persistant data storage-------------------------------------####
|
| 16 |
from datetime import datetime
|