Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

markdown is not displayed properly #9

Open
amrithmmh opened this issue Feb 12, 2019 · 1 comment
Open

markdown is not displayed properly #9

amrithmmh opened this issue Feb 12, 2019 · 1 comment

Comments

@amrithmmh
Copy link

amrithmmh commented Feb 12, 2019

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
Copy link
Author

amrithmmh commented Feb 12, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant