cccccccccccccc

This commit is contained in:
aote777 2021-11-23 16:03:14 +08:00
parent ed4e90993e
commit 2035f9b096
1 changed files with 11 additions and 18 deletions

View File

@ -12,15 +12,13 @@
* 哈哈
- [x] true
- [x] ??
- [] true
- [] 22
</textarea>
<textarea class="md-content">
```
var createScript = (src) => {
var scriptElement = document.createElement('script')
scriptElement.src = src
scriptElement.type = 'text/javascript'
@ -32,11 +30,6 @@ var createScript = (src) => {
})
}
```
| h1 | h2 | h3 |
|:------|:-------:|--------:|
| 100 | [a][1] | ![b][2] |
| *foo* | **bar** | ~~baz~~ |
</textarea>
<script>
'use strict'
@ -90,9 +83,9 @@ var createScript = (src) => {
// 启用checkbox的支持
tasklists: true,
// 尝试巧妙地修复与缩进代码中间与 es6 模板字符串相关的缩进问题
smartIndentationFix: true,
// smartIndentationFix: true,
// 将换行符解析为 <br>行尾不需要2个空格
simpleLineBreaks: true,
// simpleLineBreaks: true,
// 反斜杠转义html
backslashEscapesHTMLTags: true,
// 禁用将子列表缩进4个空格以使其嵌套的要求有效地恢复到2或3个空格足够的旧行为
@ -101,7 +94,7 @@ var createScript = (src) => {
})
convert.setFlavor('github')
document.querySelectorAll('.md-content').forEach((textarea, index) => {
// console.log('查找到的textarea元素', textarea)
console.log('查找到的textarea元素', textarea)
var text = textarea.value
var thisConverterSpecificOptions = convert.getOptions()
console.log('当前的配置项', thisConverterSpecificOptions)