Skip to content

markdown is not displayed properly #9

Open

Description

@amrithmmh

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 "

Activity

  1. amrithmmh commented on Feb 12, 2019

    @amrithmmh
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions