@kubb/parser-md 5.18.6 → 5.18.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +1 -1
- package/docs/options.md +3 -2
- package/docs/overview.md +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/options.md
CHANGED
|
@@ -40,5 +40,6 @@ Endpoints generated from the OpenAPI spec.
|
|
|
40
40
|
|
|
41
41
|
::
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
An empty object or `null` writes no frontmatter. A file banner, when set, goes above the frontmatter.
|
|
44
|
+
|
|
45
|
+
`parserMd().print(...parts)` joins Markdown strings with blank lines and skips empty ones. It takes strings only, so frontmatter always comes from `meta.frontmatter`.
|
package/docs/overview.md
CHANGED
|
@@ -4,7 +4,7 @@ The Markdown parser joins a file's source blocks as plain Markdown, separated by
|
|
|
4
4
|
|
|
5
5
|
## Setup
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Kubb registers the parser by default, next to `parserTs` and `parserTsx`, in `defineConfig` and in the bundler integrations, so no setup is needed. Add it yourself only when you set a custom `parsers` array, because that array replaces the default set. List every parser your plugins need. Files that no parser claims are written as their source text only, without imports, exports, banner, or footer.
|
|
8
8
|
|
|
9
9
|
## Options worth knowing
|
|
10
10
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/parser-md",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.8",
|
|
4
4
|
"description": "Markdown source file parser for Kubb. Converts the universal AST to `.md` source and prepends YAML frontmatter from the file meta.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"codegen",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"registry": "https://registry.npmjs.org/"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@kubb/ast": "^5.18.
|
|
69
|
-
"@kubb/core": "^5.18.
|
|
68
|
+
"@kubb/ast": "^5.18.8",
|
|
69
|
+
"@kubb/core": "^5.18.8",
|
|
70
70
|
"yaml": "^2.9.1"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|