typedoc-plugin-frontmatter
Advanced tools
Comparing version
@@ -46,3 +46,3 @@ /** | ||
page.contents = page?.contents | ||
?.replace(/^/, `---\n${yaml.stringify(page.frontmatter, yamlStringifyOptions)}---\n\n`) | ||
?.replace(/^/, `---\n${yaml.stringify(page.frontmatter, { ...yamlStringifyOptions, lineWidth: 0 })}---\n\n`) | ||
.replace(/[\r\n]{3,}/g, '\n\n'); | ||
@@ -49,0 +49,0 @@ } |
@@ -69,4 +69,6 @@ /** | ||
* | ||
* @example { "lineWidth": 0 } | ||
* Please note that `{ lineWidth: 0 }` is set by default to prevent invalid wrapping. | ||
* | ||
* @example {"defaultStringType": "QUOTE_SINGLE", "defaultKeyType": "PLAIN"} | ||
*/ | ||
export declare const yamlStringifyOptions: Partial<DeclarationOption>; |
@@ -109,3 +109,5 @@ /** | ||
* | ||
* @example { "lineWidth": 0 } | ||
* Please note that `{ lineWidth: 0 }` is set by default to prevent invalid wrapping. | ||
* | ||
* @example {"defaultStringType": "QUOTE_SINGLE", "defaultKeyType": "PLAIN"} | ||
*/ | ||
@@ -112,0 +114,0 @@ export const yamlStringifyOptions = { |
{ | ||
"name": "typedoc-plugin-frontmatter", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A plugin for TypeDoc ( + typedoc-plugin-markdown ) that prepends configurable frontmatter to page content.", | ||
@@ -5,0 +5,0 @@ "exports": { |
15727
1.89%396
1.02%