QingWei-Li / vue-markdown-loader

📇 Convert Markdown file to Vue2.0 component.
704 stars 161 forks source link

md文件顶部插入style问题 #57

Open Monroe123 opened 5 years ago

Monroe123 commented 5 years ago

最近在写一套组件库,可是发现在md文件里面写的style无效,不知道是不是少了什么配置

chiaweilee commented 5 years ago

Options

preventExtract

Since v2.0.0, this loader will automatically extract script and style tags from html token content (#26). If you do not need, you can set this option

{
  test: /\.md$/,
  loader: 'vue-markdown-loader',
  options: {
    preventExtract: false // 👌
  }
}

or try my repo @chiaweilee/vue-markdown-loader