hast-to-hyperscript:通过超脚本DSL将hast转换为其他东西的实用程序

时间:2021-05-13 14:23:18
【文件属性】:
文件名称:hast-to-hyperscript:通过超脚本DSL将hast转换为其他东西的实用程序
文件大小:14KB
文件格式:ZIP
更新时间:2021-05-13 14:23:18
html hyperscript util rehype hast 急于上标 实用程序可通过接口将转换为其他。 安装 该软件包 :需要使用Node 12+才能使用它,并且必须将其import而不是require d。 : npm install hast-to-hyperscript 用 import { toH } from 'hast-to-hyperscript' import h from 'hyperscript' var tree = { type : 'element' , tagName : 'p' , properties : { id : 'alpha' , className : [ 'bravo' ] } , children : [ { type : 'text' , value : 'charlie ' } , { type : 'element' , tagNam
【文件预览】:
hast-to-hyperscript-main
----.gitignore(57B)
----package.json(3KB)
----.npmrc(19B)
----index.js(8KB)
----tsconfig.json(324B)
----test.js(19KB)
----.github()
--------workflows()
----.prettierignore(15B)
----license(1KB)
----readme.md(7KB)
----.editorconfig(147B)

网友评论