miaolz123 / vue-markdown

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

Style of vue-markdown not show with vue template #110

Open Navyroot opened 4 years ago

Navyroot commented 4 years ago

My code :

<template>
  <div>
    <VueMarkdown :source="fileContent"></VueMarkdown>
  </div>
</template>
<script>
import VueMarkdown from 'vue-markdown'

import fileMd from 'raw-loader!../README.md'
export default {
  name: 'app',
  // extends: mdFile.vue.component,
  components: { VueMarkdown },
  data() {
    return {
      fileContent: '## __Hello__',
    }
  },
  mounted() {
    this.fileContent = fileMd
    // eslint-disable-next-line no-console
    console.log('fileMd', fileMd)
  },
}
</script>

Markdown script :

image

Result on my page :

image

Result on demo page :

image