Simditor的Markdown格式化扩展 simditor-marked
- 授权协议: 未知
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/huyinghuan/simditor-marked
- 软件文档: https://github.com/huyinghuan/simditor-marked
软件介绍
Simditor扩展,将编辑器内markdown的内容格式化
如何使用
常规加载
在Simditor的基础上额外引用marked.js 和 simditor-marked 的脚本
<script src="js/marked.js"></script> <script src="js/simditor-marked.js"></script>
配置
new Simditor({
textarea: textareaElement,
...,
toolbar: [..., 'marked']
})
点击marked 按钮(类似m的图标)后(或用快捷键Ctrl+m),将格式化编辑器里面markdown的内容。 如果选中了一部分编辑器的内容,那么只会格式选中的内容,否则格式全部内容。
Hello World
Hannah Fry / W. W. Norton Company / 2018-9 / GBP 17.99
A look inside the algorithms that are shaping our lives and the dilemmas they bring with them. If you were accused of a crime, who would you rather decide your sentence—a mathematically consistent ......一起来看看 《Hello World》 这本书的介绍吧!
JSON 在线解析
在线 JSON 格式化工具
RGB CMYK 转换工具
RGB CMYK 互转工具
