I am trying to render a markdown file (
.md) in a
<body> component of an html page. I came across marked.js.
The documentation presents the following usage:
marked.parse('# Marked in the browser\n\nRendered by **marked**.');
Which works well for what I want to do (it renders the markdown in html format). However, I'd like the input into the
marked.parse call to be a
.md file such that I don't have to write all of the content between simple quote barriers.
but this didn't work.