1 month ago

Display .md file with Javascript

Posted 1 month ago by shaqaruden

I am wanting to add Release Notes to my Vue Project using a Markdown file but I am not sure how to get the contents of the markdown file. The only way I have gotten it to work is to have my api send the html in a json response and then display that in the vue component with v-html.

I really don't like this idea so I would like an alternative. Any ideas?

EDIT: I should point out that I know that I can use a Markdown parser like Showdown or Marked, but I need to know how to pass the markdown from the .md file to vue to be parsed and then rendered.

Please sign in or create an account to participate in this conversation.