rehype-wrap-all:用给定的元素包装所有匹配的元素

时间:2021-05-31 09:22:30
【文件属性】:
文件名称:rehype-wrap-all:用给定的元素包装所有匹配的元素
文件大小:39KB
文件格式:ZIP
更新时间:2021-05-31 09:22:30
JavaScript 再炒作 用给定的元素包裹匹配的元素 安装 npm i -S rehype-wrap-all 用法 const wrap = require ( 'rehype-wrap-all' ) const rehype = require ( 'rehype' ) rehype ( ) . use ( wrap , /* options (object or array) */ ) . process ( /* html string */ ) . then ( /* vfile */ ) . catch ( /* handle any errors */ ) 请注意,如果您想用不同的包装器包装多个元素,则可以使用一组选项 选项 wrap.selector string 选择要包装的元素。 需要一个可以传递给 hast-util-select ()的字符串选择。 wrap.wr
【文件预览】:
rehype-wrap-all-master
----test.js(5KB)
----.travis.yml(81B)
----.editorconfig(188B)
----.gitignore(2KB)
----index.js(1KB)
----readme.md(3KB)
----package-lock.json(138KB)
----package.json(1KB)

网友评论