rehype-annotate

时间:2021-05-14 05:12:46
【文件属性】:
文件名称:rehype-annotate
文件大小:173KB
文件格式:ZIP
更新时间:2021-05-14 05:12:46
JavaScript rehype-annotate 此插件将与它们在已解析HTML文件中的目标匹配。 它将文本范围选择包装在mark元素中,并将属性和挂钩添加到匹配的位置,可在其他处理器或浏览器脚本中使用它们来实现进一步的行为。 注意:这会修改原始树,并且在某些情况下可以添加类属性。 确保随后对树进行消毒。 该脚本未嵌入注释提供的样式,尽管这已在路线图上。 我们确实将styleClass属性的值分配给带注释的节点,以便客户端可以提供自己的样式表。 执照 阿帕奇2.0 安装 我们尚未在npm上发布此软件包,但是您可以直接从GitHub存储库安装它。 : npm install RebusFoundation/rehype-annotate 用 rehype-annotate应该用作rehype或unified插件,以将注释与hast语法树匹配。 const vfile = require ( "to
【文件预览】:
rehype-annotate-master
----.gitignore(884B)
----hast-annotations-match()
--------css-selector.js(457B)
--------index.js(6KB)
--------add-parent-props.js(2KB)
--------render-templates.js(2KB)
--------get-node.js(2KB)
--------process-quotations.js(3KB)
--------add-props-to-node.js(1KB)
--------simple-xpath-selector.js(2KB)
--------full-html-schema.json(9KB)
--------process-positions.js(6KB)
--------range-selector.js(1KB)
--------generate-full-html-schema.js(4KB)
----package.json(2KB)
----package-lock.json(205KB)
----tap-snapshots()
--------tests-index.js-TAP.test.js(15KB)
----LICENSE(11KB)
----index.js(235B)
----.github()
--------workflows()
----README.md(7KB)
----tests()
--------index.js(2KB)
--------fixtures()
----logger.js(171B)
----.gitattributes(66B)

网友评论