摘要:
```js import collapseWhitespace from './collapse-whitespace' import HTMLParser from './html-parser' import { isBlock, isVoid } from './utilities' // 单 阅读全文
posted @ 2023-06-19 17:43
绝不原创的飞龙
阅读(27)
评论(0)
推荐(0)
摘要:
```js import { repeat } from './utilities' var rules = {} // 段落 rules.paragraph = { filter: 'p', replacement: function (content) { // 前后加两个换行 return ' 阅读全文
posted @ 2023-06-19 16:04
绝不原创的飞龙
阅读(23)
评论(0)
推荐(0)
摘要:
```js /** * Manages a collection of rules used to convert HTML to Markdown */ export default function Rules (options) { // 配置 this.options = options / 阅读全文
posted @ 2023-06-19 14:57
绝不原创的飞龙
阅读(32)
评论(0)
推荐(0)
摘要:
````js import COMMONMARK_RULES from './commonmark-rules' import Rules from './rules' import { extend, trimLeadingNewlines, trimTrailingNewlines } from 阅读全文
posted @ 2023-06-19 14:35
绝不原创的飞龙
阅读(111)
评论(0)
推荐(0)

浙公网安备 33010602011771号