文件名称:rehype-format:用于格式化 HTML 的插件
文件大小:24KB
文件格式:ZIP
更新时间:2024-08-23 09:14:32
html format beautify rehype print
再炒作格式 插件来格式化 HTML。 安装 此包 :需要 Node 12+ 才能使用它,并且必须使用import ed 而不是require d。 : npm install rehype-format 采用 假设我们有以下文件index.html : <!doCTYPE HTML > < html > < head > < title > Hello! </ title > < meta charset = utf8 > </ head > < body > < section> < p> hi there p> section> </ body > </ html > 我们的模块example.js如下所示: import { readSync } from 'to-vfile' import { repo
【文件预览】:
rehype-format-main
----index.js(5KB)
----package.json(2KB)
----readme.md(5KB)
----.github()
--------workflows()
----test()
--------index.js(1KB)
--------fixtures()
----.prettierignore(22B)
----license(1KB)
----tsconfig.json(360B)
----.gitignore(57B)
----.npmrc(19B)
----.editorconfig(147B)