2 Star 4 Fork 0

ORH / vue-markdown-editor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.html 1.22 KB
一键复制 编辑 原始数据 按行查看 历史
ORH 提交于 2020-12-22 15:15 . feat: 重构代码
<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Vue markdown editor and marked</title>
<link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
<link href="../dist/css/themes/agate.css" rel="stylesheet">
<link href="../dist/css/vue-markdown-editor.css" rel="stylesheet">
<style>
[v-cloak] {
display: none;
}
</style>
</head>
<body>
<div id="app" v-cloak>
<div class="p-5">
<div class="row">
<div class="col-12 col-sm-6">
<vue-markdown-editor
v-model="content"
>
</vue-markdown-editor>
</div>
<div class="col-12 col-sm-6">
<vue-marked
:value="content"
>
</vue-marked>
</div>
</div>
</div>
</div>
<script src="https://cdn.bootcss.com/vue/2.6.10/vue.min.js"></script>
<script src="../dist/js/vue-markdown-editor.js"></script>
<script>
var app = new Vue({
el: '#app',
data: {
content: '## Vue markdown editor and marked\n\n```php\necho "hello world!"\n```'
}
});
</script>
</body>
</html>
JavaScript
1
https://gitee.com/orh/vue-markdown-editor.git
git@gitee.com:orh/vue-markdown-editor.git
orh
vue-markdown-editor
vue-markdown-editor
master

搜索帮助