miaolz123 / vue-markdown

A Powerful and Highspeed Markdown Parser for Vue
https://miaolz123.github.io/vue-markdown/
MIT License
1.91k stars 258 forks source link

Import external markdown #16

Closed guillaumemolter closed 7 years ago

guillaumemolter commented 7 years ago

I'm a JS and Vue.js noob so forgive me if this a dumb question.

Is there a way to parse and render markdown text from a .md file stored in my static folder? Maybe using import or webpack?

If yes I think documenting this would be a great addition :-)

miaolz123 commented 7 years ago

I am sorry to answer you, it can not be used like this because it can only parse the string ~

miaolz123 commented 7 years ago

However, there is an idea, you can read the contents of the file into a string and then use this tool.

Hope this can help you!

guillaumemolter commented 7 years ago

Thanks for your response!

Yes found this : https://github.com/webpack/raw-loader that should work

miaolz123 commented 7 years ago

Awesome!