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

使用方式 #1

Closed transtone closed 8 years ago

transtone commented 8 years ago

<vue-markdown source="..."></vue-markdown> 文档里通常这样来用,可否这样用:

<vue-markdown> ... </vue-markdown>

========= 好吧,搞错了。

miaolz123 commented 8 years ago

多谢反馈哦,这个功能已经实现 ~ Slots

欢迎多提需求哦

transtone commented 8 years ago

我后来是用 webpack 的 markdown loader 处理的 .md 文件,import 到 组件里,再通过 v-html 放到想要的地方。 想实现的是 ant.design 中文档的写法,将 md 文件混在 template 当中。(现在他们又改了一种做法)

回头试试这个方案:)

移动端的富文本编辑器功能其实也可以基于本组件实现,很多需求正在路上...