pvanand commited on
Commit
5c21bed
1 Parent(s): 5192fdb

Update helper_functions_api.py

Browse files
Files changed (1) hide show
  1. 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
- renderer = mistune.HTMLRenderer()
11
- markdown_renderer = mistune.Markdown(renderer, plugins=[table])
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