jakewright / tutorials

Source code from Jake Wright's YouTube tutorials
http://youtube.com/jaketvee
MIT License
589 stars 571 forks source link

markdown is not displayed properly #9

Open amrithmmh opened 5 years ago

amrithmmh commented 5 years ago

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 commented 5 years ago

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")