QingWei-Li / vue-markdown-loader

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

webpack 4 下,不能解析script #48

Closed Lemenxzy closed 6 years ago

Lemenxzy commented 6 years ago

解析出来的.md没有 标签,为空

Lemenxzy commented 6 years ago

这将导致 解析出的组件 没有自定义的事件和data 报错

Lemenxzy commented 6 years ago

如果换成 vue-loader 15的话 webpack应该这样写

{
test: /\.md$/,
    use: [
        {
            loader: 'vue-loader'
        },
        {
            loader: 'vue-markdown-loader/lib/markdown-compiler',
            options: {
                raw: true
            }
        }
    ]
}

那么 vue-markdown-loader 的 options 怎么设置??

大神求解答一下

Lemenxzy commented 6 years ago

看了源码明白了。

samchen08 commented 6 years ago

求赐教

Lemenxzy commented 6 years ago

@samchen08 你想知道哪款,是关于option吗?

weifu2 commented 6 years ago

markdown-it 的配置不生效了,可知道怎么解决? image

image

上述 markdown 配置没用