没有合适的资源?快使用搜索试试~ 我知道了~
rehype-annotate
共51个文件
html:17个
js:15个
json:12个
需积分: 8 0 下载量 63 浏览量
2021-05-14
05:12:46
上传
评论
收藏 173KB ZIP 举报
温馨提示
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.zip (51个子文件)
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
node.js.yml 843B
README.md 7KB
tests
index.js 2KB
fixtures
poetry-linebreaks.input.html 46KB
text-position.annotations.json 3KB
fragment-multibody.input.html 8KB
refinedby.annotations.json 2KB
xpath-single.annotations.json 1KB
range.output.html 8KB
css-single.output.html 8KB
text-position.string.reference.txt 5KB
range.annotations.json 2KB
fragment-multibody.annotations.json 2KB
text-position-values.reference.txt 290B
text-quote.output.html 10KB
refinedby.output.html 9KB
xpath-single.output.html 8KB
text-quote.annotations.json 7KB
template.html 0B
fragment-multibody.output.html 8KB
refinedby.input.html 8KB
poetry-linebreaks.annotations.json 3KB
css-single.annotations.json 1KB
text-position.input.html 8KB
xpath-single.input.html 8KB
poetry-linebreaks.output.html 48KB
range.input.html 8KB
text-quote.input.html 8KB
text-position.output.html 9KB
css-single.input.html 8KB
annotations-template.json 1008B
logger.js 171B
.gitattributes 66B
共 51 条
- 1
资源评论
阚发景
- 粉丝: 16
- 资源: 4614
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功