@cloudcannon/configuration-types 0.0.16 → 0.0.17

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.
@@ -0,0 +1,98 @@
1
+ export type AttributeListPosition =
2
+ | 'none'
3
+ | 'right'
4
+ | 'space right'
5
+ | 'below'
6
+ | 'newline below'
7
+ | 'right-of-prefix';
8
+
9
+ export type MarkdownAttributeElementOptions = {
10
+ inline?: AttributeListPosition;
11
+ block?: AttributeListPosition;
12
+ } & {
13
+ [index: string]: AttributeListPosition;
14
+ };
15
+
16
+ export interface MarkdownSettings {
17
+ engine: 'commonmark' | 'kramdown';
18
+ options: {
19
+ /**
20
+ * Output HTML tags from source.
21
+ */
22
+ html?: boolean;
23
+ /**
24
+ * Use '/' to close single tags (<br />).
25
+ */
26
+ xhtml?: boolean;
27
+ /**
28
+ * Convert '\n' in paragraphs into <br>.
29
+ */
30
+ breaks?: boolean;
31
+ /**
32
+ * Autoconvert URL-like text to links.
33
+ */
34
+ linkify?: boolean;
35
+ /**
36
+ * Enable some language-neutral replacement + quotes beautification.
37
+ */
38
+ typographer?: boolean;
39
+ /**
40
+ * 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).
43
+ */
44
+ quotes?: string;
45
+ /**
46
+ * Output lists with an extra space in Markdown.
47
+ */
48
+ spaced_lists?: boolean;
49
+ /**
50
+ * Add linebreaks between sentences in Markdown.
51
+ */
52
+ sentence_per_line?: boolean;
53
+ /**
54
+ * Enable GFM mode.
55
+ */
56
+ gfm?: boolean;
57
+ /**
58
+ * Determines which style of code block fences to use.
59
+ */
60
+ code_block_fences?: '```' | '~~~';
61
+ /**
62
+ * Determines whether 4 spaces on indentation should be read as a code block.
63
+ */
64
+ treat_indentation_as_code?: boolean;
65
+ /**
66
+ * Render snippets as plain text within code blocks.
67
+ */
68
+ escape_snippets_in_code_blocks?: boolean;
69
+ /**
70
+ * Output tables in Markdown format.
71
+ */
72
+ table?: boolean;
73
+ /**
74
+ * Output strikes in wrapped in double tildes (e.g. ~~strike~~)
75
+ */
76
+ strikethrough?: boolean;
77
+ /**
78
+ * Output subscript in wrapped in tildes (e.g. ~sub~)
79
+ */
80
+ subscript?: boolean;
81
+ /**
82
+ * Output superscript in wrapped in carets (e.g. ^super^)
83
+ */
84
+ superscript?: boolean;
85
+ /**
86
+ * Generate IDs for headings
87
+ */
88
+ heading_ids?: boolean;
89
+ /**
90
+ * Save element attributes in Markdown format instead of converting to HTML.
91
+ */
92
+ attributes?: boolean;
93
+ /**
94
+ * Define positioning behaviour of Markdown attributes for different elements.
95
+ */
96
+ attribute_elements?: MarkdownAttributeElementOptions;
97
+ };
98
+ }