chore:支持marked的setsetOption方法
This commit is contained in:
parent
dbd8846273
commit
afaf8af453
|
@ -9,3 +9,4 @@ yarn-error.log
|
|||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
/build/
|
||||
|
|
27
README.md
27
README.md
|
@ -126,29 +126,32 @@ const config = {
|
|||
|
||||
|
||||
### 更新日志
|
||||
**1.3.0**
|
||||
- 支持配置marked的markedOptions,感谢[dkvirus](https://github.com/dkvirus)提出的[issues#12](https://github.com/zhaoxuhui1122/vue-markdown/issues/12)和具体的解决办法
|
||||
|
||||
**1.2.1**
|
||||
1. 支持theme、width、heigh动态切换
|
||||
- 支持theme、width、heigh动态切换
|
||||
|
||||
**v1.2.0**
|
||||
1. 优化代码体积,按需加载highlight.js,较少了三分之二的代码体积
|
||||
2. 新增图片粘贴功能
|
||||
3. 增加图片预览功能
|
||||
4. 修复部分bug
|
||||
- 优化代码体积,按需加载highlight.js,较少了三分之二的代码体积
|
||||
- 新增图片粘贴功能
|
||||
- 增加图片预览功能
|
||||
- 修复部分bug
|
||||
|
||||
**v0.9.3**
|
||||
|
||||
1. 解决初始化值initialValue无法动态改变的问题
|
||||
2. 修改了打包配置
|
||||
- 解决初始化值initialValue无法动态改变的问题
|
||||
- 修改了打包配置
|
||||
|
||||
**v0.8.0**
|
||||
|
||||
1. 新增md文件导出和读取功能
|
||||
2. 修改预览部分样式
|
||||
3. 修改头部菜单样式
|
||||
- 新增md文件导出和读取功能
|
||||
- 修改预览部分样式
|
||||
- 修改头部菜单样式
|
||||
|
||||
**v0.7.0**
|
||||
|
||||
1. 修复主题无法更新的问题
|
||||
2. 修复文档初始化值无法动态切换的问题
|
||||
- 修复主题无法更新的问题
|
||||
- 修复文档初始化值无法动态切换的问题
|
||||
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "vue-meditor",
|
||||
"description": "一款使用marked和highlight.js开发的一款markdown编辑器",
|
||||
"version": "1.2.1",
|
||||
"version": "1.3.0",
|
||||
"author": "zhaoxuhui<1258835133@qq.com>",
|
||||
"license": "MIT",
|
||||
"main": "build/index.js",
|
||||
|
@ -19,7 +19,7 @@
|
|||
"highlight.js": "^9.12.0",
|
||||
"marked": "^0.4.0",
|
||||
"vue": "^2.5.11",
|
||||
"vue-meditor": "^1.2.1"
|
||||
"vue-meditor": "^1.3.0"
|
||||
},
|
||||
"browserslist": [
|
||||
"> 1%",
|
||||
|
@ -42,5 +42,6 @@
|
|||
"webpack": "^3.6.0",
|
||||
"webpack-dev-server": "^2.9.1"
|
||||
},
|
||||
"readmeFilename": "README.md"
|
||||
"readmeFilename": "README.md",
|
||||
"files":["build","README.md"]
|
||||
}
|
||||
|
|
|
@ -4,15 +4,15 @@
|
|||
<h1>vue-markdown编辑器组件</h1>
|
||||
<a target="_blank" href="https://github.com/zhaoxuhui1122/vue-markdown">使用文档</a>
|
||||
<div class="content">
|
||||
<mark-down @on-save="save" :theme="theme" :initialValue="initialValue"></mark-down>
|
||||
<mark-down @on-paste-image="handlePasteImage" @on-save="save" :theme="theme" :initialValue="initialValue" :markedOptions="{baseUrl:'http://smalleyes.oss-cn-shanghai.aliyuncs.com/'}"></mark-down>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
// import MarkDown from './markdown/index' // 开发文件
|
||||
import MarkDown from "../build"; // 引入打包好的文件
|
||||
import MarkDown from './markdown/index' // 开发文件
|
||||
// import MarkDown from "../build"; // 引入打包好的文件
|
||||
// import MarkDown from 'vue-meditor';
|
||||
|
||||
import doc from './doc';
|
||||
|
@ -30,6 +30,9 @@
|
|||
methods: {
|
||||
save(res) {
|
||||
console.log(res);
|
||||
},
|
||||
handlePasteImage(res) {
|
||||
console.log(res);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
|
35
src/doc.js
35
src/doc.js
|
@ -13,7 +13,7 @@ GitHub :[https://github.com/zhaoxuhui1122/vue-markdown]( https://github.com/zhao
|
|||
|
||||
|
||||
**效果**
|
||||
![image](http://smalleyes.oss-cn-shanghai.aliyuncs.com/WechatIMG586.png)
|
||||
![image](/WechatIMG586.png)
|
||||
|
||||
### 2.安装
|
||||
|
||||
|
@ -126,28 +126,39 @@ const config = {
|
|||
|
||||
|
||||
### 更新日志
|
||||
**1.3.0**
|
||||
- 支持配置marked的markedOptions,感谢[dkvirus](https://github.com/dkvirus)提出的[issues#12](https://github.com/zhaoxuhui1122/vue-markdown/issues/12)和具体的解决办法
|
||||
|
||||
**1.2.1**
|
||||
- 支持theme、width、heigh动态切换
|
||||
|
||||
**v1.2.0**
|
||||
- 优化代码体积,按需加载highlight.js,较少了三分之二的代码体积
|
||||
- 新增图片粘贴功能
|
||||
- 增加图片预览功能
|
||||
- 修复部分bug
|
||||
|
||||
**v1.0.0**
|
||||
1. 优化代码体积,按需加载highlight.js,较少了三分之二的代码体积
|
||||
2. 新增图片粘贴功能
|
||||
3. 增加图片预览功能
|
||||
4. 修复部分bug
|
||||
- 优化代码体积,按需加载highlight.js,较少了三分之二的代码体积
|
||||
- 新增图片粘贴功能
|
||||
- 增加图片预览功能
|
||||
- 修复部分bug
|
||||
|
||||
**v0.9.3**
|
||||
|
||||
1. 解决初始化值initialValue无法动态改变的问题
|
||||
2. 修改了打包配置
|
||||
- 解决初始化值initialValue无法动态改变的问题
|
||||
- 修改了打包配置
|
||||
|
||||
**v0.8.0**
|
||||
|
||||
1. 新增md文件导出和读取功能
|
||||
2. 修改预览部分样式
|
||||
3. 修改头部菜单样式
|
||||
- 新增md文件导出和读取功能
|
||||
- 修改预览部分样式
|
||||
- 修改头部菜单样式
|
||||
|
||||
**v0.7.0**
|
||||
|
||||
1. 修复主题无法更新的问题
|
||||
2. 修复文档初始化值无法动态切换的问题
|
||||
- 修复主题无法更新的问题
|
||||
- 修复文档初始化值无法动态切换的问题
|
||||
|
||||
|
||||
`
|
||||
|
|
Loading…
Reference in New Issue