mdast-normalize-headings:实用程序,以确保文档中只包含一个*标题

时间:2024-06-02 18:10:22
【文件属性】:

文件名称:mdast-normalize-headings:实用程序,以确保文档中只包含一个*标题

文件大小:11KB

文件格式:ZIP

更新时间:2024-06-02 18:10:22

markdown syntax-tree unist mdast mdast-util

mdast-normalize-headings 实用程序可通过相应地调整标题深度来确保文档中只有一个*标题。 对于每个假定单个降价文档提供多个顶层标题的工具,如果假定只有一个顶层标题包含有关该文档的一些元信息(通常是标题),则会使他们感到困惑。 安装 该软件包 :需要使用Node 12+才能使用它,并且必须将其import而不是require d。 : npm install mdast-normalize-headings 用 import { u } from 'unist-builder' import { normalizeHeadings } from 'mdast-normalize-headings' var tree = u ( 'root' , [ u ( 'heading' , { depth : 1 } , [ u ( 'text' , 'title'


【文件预览】:
mdast-normalize-headings-main
----index.js(1KB)
----package.json(2KB)
----readme.md(4KB)
----.github()
--------workflows()
----test()
--------fixture()
--------index.js(1KB)
----.prettierignore(15B)
----license(1KB)
----tsconfig.json(338B)
----.gitignore(57B)
----.npmrc(19B)
----.editorconfig(147B)

网友评论