@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 CHANGED
@@ -33,7 +33,7 @@ const parserMd = (0, _kubb_core.defineExtension)({
33
33
  kind: "parser",
34
34
  meta: {
35
35
  name: "markdown",
36
- version: "5.18.6",
36
+ version: "5.18.8",
37
37
  compatibility: {
38
38
  "kubb": ">=5.8.3",
39
39
  "node": ">=22.22"
package/dist/index.d.cts CHANGED
@@ -32,5 +32,4 @@ type MdMeta = {
32
32
  * ```
33
33
  */
34
34
  export declare const parserMd: import("@kubb/core").ParserFactory<object, object, string>;
35
- export type { MdMeta };
36
- //# sourceMappingURL=index.d.cts.map
35
+ export type { MdMeta };
package/dist/index.d.ts CHANGED
@@ -32,5 +32,4 @@ type MdMeta = {
32
32
  * ```
33
33
  */
34
34
  export declare const parserMd: import("@kubb/core").ParserFactory<object, object, string>;
35
- export type { MdMeta };
36
- //# sourceMappingURL=index.d.ts.map
35
+ export type { MdMeta };
package/dist/index.js CHANGED
@@ -32,7 +32,7 @@ const parserMd = defineExtension({
32
32
  kind: "parser",
33
33
  meta: {
34
34
  name: "markdown",
35
- version: "5.18.6",
35
+ version: "5.18.8",
36
36
  compatibility: {
37
37
  "kubb": ">=5.8.3",
38
38
  "node": ">=22.22"
package/docs/options.md CHANGED
@@ -40,5 +40,6 @@ Endpoints generated from the OpenAPI spec.
40
40
 
41
41
  ::
42
42
 
43
- - `parserMd().print` accepts objects and Markdown strings, joined with blank lines.
44
- - `parserMd().print({ title: 'Pets', layout: 'doc' })` returns `---\ntitle: Pets\nlayout: doc\n---`.
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
- With `defineConfig` from `kubb/config`, Kubb registers the parser by default, next to `parserTs` and `parserTsx`, so no setup is needed. Bundler integrations leave it out. 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.
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.6",
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.6",
69
- "@kubb/core": "^5.18.6",
68
+ "@kubb/ast": "^5.18.8",
69
+ "@kubb/core": "^5.18.8",
70
70
  "yaml": "^2.9.1"
71
71
  },
72
72
  "engines": {