@cloudcannon/configuration-types 0.0.19 → 0.0.20

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/src/index.d.ts CHANGED
@@ -6,3 +6,22 @@ export type * from './syntax';
6
6
  export type * from './markdown';
7
7
  export type * from './configuration';
8
8
  export type * from './build-coupled';
9
+
10
+ export type SsgKey =
11
+ | 'hugo'
12
+ | 'jekyll'
13
+ | 'eleventy'
14
+ | 'astro'
15
+ | 'lume'
16
+ | 'mkdocs'
17
+ | 'nextjs'
18
+ | 'sveltekit'
19
+ | 'bridgetown'
20
+ | 'docusaurus'
21
+ | 'gatsby'
22
+ | 'hexo'
23
+ | 'nuxtjs'
24
+ | 'sphinx'
25
+ | 'static'
26
+ | 'legacy'
27
+ | 'other';
package/src/markdown.d.ts CHANGED
@@ -14,6 +14,11 @@ export type MarkdownAttributeElementOptions = {
14
14
  };
15
15
 
16
16
  export interface MarkdownSettings {
17
+ /**
18
+ * The flavor of Markdown to use to convert between HTML and Markdown.
19
+ *
20
+ * @default kramdown
21
+ */
17
22
  engine: 'commonmark' | 'kramdown';
18
23
  options: {
19
24
  /**
@@ -21,11 +26,11 @@ export interface MarkdownSettings {
21
26
  */
22
27
  html?: boolean;
23
28
  /**
24
- * Use '/' to close single tags (<br />).
29
+ * Use `/` to close single tags (e.g. `<br />`).
25
30
  */
26
31
  xhtml?: boolean;
27
32
  /**
28
- * Convert '\n' in paragraphs into <br>.
33
+ * Convert `\n` in paragraphs into `<br>`.
29
34
  */
30
35
  breaks?: boolean;
31
36
  /**
@@ -33,13 +38,13 @@ export interface MarkdownSettings {
33
38
  */
34
39
  linkify?: boolean;
35
40
  /**
36
- * Enable some language-neutral replacement + quotes beautification.
41
+ * Enable some language-neutral replacement, as well as quotes beautification.
37
42
  */
38
43
  typographer?: boolean;
39
44
  /**
40
45
  * Double + single quotes replacement pairs, when typographer enabled and smartquotes on. For
41
- * example, you can use '«»„“' for Russian, '„“‚‘' for German, and ['«\xA0', '\xA0»', '‹\xA0',
42
- * '\xA0›'] for French (including nbsp).
46
+ * example, you can use `'«»„“'` for Russian, `'„“‚‘'` for German, and `['«\xA0', '\xA0»',
47
+ * '‹\xA0', '\xA0›']` for French (including `nbsp`).
43
48
  */
44
49
  quotes?: string;
45
50
  /**
@@ -71,19 +76,19 @@ export interface MarkdownSettings {
71
76
  */
72
77
  table?: boolean;
73
78
  /**
74
- * Output strikes in wrapped in double tildes (e.g. ~~strike~~)
79
+ * Output strikes in wrapped in double tildes (e.g. `~~strike~~`).
75
80
  */
76
81
  strikethrough?: boolean;
77
82
  /**
78
- * Output subscript in wrapped in tildes (e.g. ~sub~)
83
+ * Output subscript in wrapped in tildes (e.g. `~sub~`).
79
84
  */
80
85
  subscript?: boolean;
81
86
  /**
82
- * Output superscript in wrapped in carets (e.g. ^super^)
87
+ * Output superscript in wrapped in carets (e.g. `^super^`).
83
88
  */
84
89
  superscript?: boolean;
85
90
  /**
86
- * Generate IDs for headings
91
+ * Generate IDs for headings.
87
92
  */
88
93
  heading_ids?: boolean;
89
94
  /**
@@ -91,7 +96,7 @@ export interface MarkdownSettings {
91
96
  */
92
97
  attributes?: boolean;
93
98
  /**
94
- * Define positioning behaviour of Markdown attributes for different elements.
99
+ * Define positioning behavior of Markdown attributes for different elements.
95
100
  */
96
101
  attribute_elements?: MarkdownAttributeElementOptions;
97
102
  };