tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

markdown is not displayed properly

Open amrithmmh opened this issue 6 years ago • 1 comments
trafficstars

i tried you code but there seems to be a problem with markdown i noticed extra " " are added before and after the file content hence it is displayed as string not html

example if a mrkdown is ###hello then it becomes "###hello "

amrithmmh avatar Feb 12 '19 08:02 amrithmmh

solved it!

here is the code i used that worked convert .md to html using markup python3 -m markup xxx.md xxx.html

class home(Resource): def get(self): """Present some documentation""" # Open the README file content = get_file('readme.html') return Response(content, mimetype="text/html")

amrithmmh avatar Feb 12 '19 10:02 amrithmmh