<template>
<div id="app">
<VueShowdown :markdown="fileContent"></VueShowdown>
</div>
</template>
<script>
import mdFile from "!!raw-loader!../assets/welcome.md";
export default {
data() {
return {
fileContent: ""
};
},
mounted() {
this.getMDFile();
},
methods: {
getMDFile() {
this.fileContent = mdFile;
}
}
};
</script>
I download the md file from the azure devops wiki. I need to use this in my project, but articles etc. But the picture is not displayed. What is the reason?
import VueShowdown from "vue-showdown";
import Mark from "./components/Mark.vue";
Vue.use(VueShowdown, {
flavor: 'github',
options: {
emoji: true
},
})
const router = new VueRouter({
routes: [
{ path: '/mark', component: Mark}
]
})