Ai
1 Star 0 Fork 31

八闽飞鹰/markdown-it-vue

forked from ravenq/markdown-it-vue 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
example.vue 774 Bytes
一键复制 编辑 原始数据 按行查看 历史
ravenq 提交于 2019-09-19 17:53 +08:00 . linck #9 fix markdown-it-link-attributes options
<template>
<div class="container">
<textarea class="md-text" rows="10" v-model="content"/>
<markdown-it-vue class="md-body" :content="content" :options="options" />
</div>
</template>
<script>
import MarkdownText from './example'
import MarkdownItVue from '../../src'
export default {
components: {
MarkdownItVue
},
data () {
return {
content: MarkdownText,
options: {
markdownIt: {
linkify: true
},
linkAttributes: {
attrs: {
target: '_self',
rel: 'noopener'
}
}
}
}
}
}
</script>
<style scoped>
.container {
display: inline-flex;
width: 100%;
}
.md-text {
width: 47%;
}
.md-body {
width: 50%;
margin-left: 20px;
}
</style>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/wzqtroika/markdown-it-vue.git
git@gitee.com:wzqtroika/markdown-it-vue.git
wzqtroika
markdown-it-vue
markdown-it-vue
master

搜索帮助