@discordjs/formatters 1.0.0-dev.1793836959-ddbba3adb → 1.0.0-dev.1794787379-57db0bb10

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,193 @@
1
+ /**
2
+ * The options that affect what will be escaped.
3
+ */
4
+ export interface EscapeMarkdownOptions {
5
+ /**
6
+ * Whether to escape block quotes.
7
+ *
8
+ * @defaultValue `true`
9
+ */
10
+ blockQuote?: boolean;
11
+ /**
12
+ * Whether to escape bold text.
13
+ *
14
+ * @defaultValue `true`
15
+ */
16
+ bold?: boolean;
17
+ /**
18
+ * Whether to escape bulleted lists.
19
+ *
20
+ * @defaultValue `true`
21
+ */
22
+ bulletedList?: boolean;
23
+ /**
24
+ * Whether to escape code blocks.
25
+ *
26
+ * @defaultValue `true`
27
+ */
28
+ codeBlock?: boolean;
29
+ /**
30
+ * Whether to escape text inside code blocks.
31
+ *
32
+ * @defaultValue `true`
33
+ */
34
+ codeBlockContent?: boolean;
35
+ /**
36
+ * Whether to escape `\`.
37
+ *
38
+ * @defaultValue `true`
39
+ */
40
+ escape?: boolean;
41
+ /**
42
+ * Whether to escape headings.
43
+ *
44
+ * @defaultValue `true`
45
+ */
46
+ heading?: boolean;
47
+ /**
48
+ * Whether to escape inline code.
49
+ *
50
+ * @defaultValue `true`
51
+ */
52
+ inlineCode?: boolean;
53
+ /**
54
+ * Whether to escape text inside inline code.
55
+ *
56
+ * @defaultValue `true`
57
+ */
58
+ inlineCodeContent?: boolean;
59
+ /**
60
+ * Whether to escape italics.
61
+ *
62
+ * @defaultValue `true`
63
+ */
64
+ italic?: boolean;
65
+ /**
66
+ * Whether to escape masked links.
67
+ *
68
+ * @defaultValue `true`
69
+ */
70
+ maskedLink?: boolean;
71
+ /**
72
+ * Whether to escape numbered lists.
73
+ *
74
+ * @defaultValue `true`
75
+ */
76
+ numberedList?: boolean;
77
+ /**
78
+ * Whether to escape block quotes.
79
+ *
80
+ * @defaultValue `true`
81
+ */
82
+ quote?: boolean;
83
+ /**
84
+ * Whether to escape spoilers.
85
+ *
86
+ * @defaultValue `true`
87
+ */
88
+ spoiler?: boolean;
89
+ /**
90
+ * Whether to escape strikethroughs.
91
+ *
92
+ * @defaultValue `true`
93
+ */
94
+ strikethrough?: boolean;
95
+ /**
96
+ * Whether to escape underlines.
97
+ *
98
+ * @defaultValue `true`
99
+ */
100
+ underline?: boolean;
101
+ }
102
+ /**
103
+ * Escapes any Discord-flavored markdown in a string.
104
+ *
105
+ * @param text - Content to escape
106
+ * @param options - Options for escaping the markdown
107
+ */
108
+ export declare function escapeMarkdown(text: string, options?: EscapeMarkdownOptions): string;
109
+ /**
110
+ * Escapes code block markdown in a string.
111
+ *
112
+ * @param text - Content to escape
113
+ */
114
+ export declare function escapeCodeBlock(text: string): string;
115
+ /**
116
+ * Escapes inline code markdown in a string.
117
+ *
118
+ * @param text - Content to escape
119
+ */
120
+ export declare function escapeInlineCode(text: string): string;
121
+ /**
122
+ * Escapes italic markdown in a string.
123
+ *
124
+ * @param text - Content to escape
125
+ */
126
+ export declare function escapeItalic(text: string): string;
127
+ /**
128
+ * Escapes bold markdown in a string.
129
+ *
130
+ * @param text - Content to escape
131
+ */
132
+ export declare function escapeBold(text: string): string;
133
+ /**
134
+ * Escapes underline markdown in a string.
135
+ *
136
+ * @param text - Content to escape
137
+ */
138
+ export declare function escapeUnderline(text: string): string;
139
+ /**
140
+ * Escapes strikethrough markdown in a string.
141
+ *
142
+ * @param text - Content to escape
143
+ */
144
+ export declare function escapeStrikethrough(text: string): string;
145
+ /**
146
+ * Escapes spoiler markdown in a string.
147
+ *
148
+ * @param text - Content to escape
149
+ */
150
+ export declare function escapeSpoiler(text: string): string;
151
+ /**
152
+ * Escapes escape characters in a string.
153
+ *
154
+ * @param text - Content to escape
155
+ */
156
+ export declare function escapeEscape(text: string): string;
157
+ /**
158
+ * Escapes heading characters in a string.
159
+ *
160
+ * @param text - Content to escape
161
+ */
162
+ export declare function escapeHeading(text: string): string;
163
+ /**
164
+ * Escapes bulleted list characters in a string.
165
+ *
166
+ * @param text - Content to escape
167
+ */
168
+ export declare function escapeBulletedList(text: string): string;
169
+ /**
170
+ * Escapes numbered list characters in a string.
171
+ *
172
+ * @param text - Content to escape
173
+ */
174
+ export declare function escapeNumberedList(text: string): string;
175
+ /**
176
+ * Escapes masked link characters in a string.
177
+ *
178
+ * @param text - Content to escape
179
+ */
180
+ export declare function escapeMaskedLink(text: string): string;
181
+ /**
182
+ * Escapes quote characters in a string.
183
+ *
184
+ * @param text - Content to escape
185
+ */
186
+ export declare function escapeQuote(text: string): string;
187
+ /**
188
+ * Escapes block quote characters in a string.
189
+ *
190
+ * @param text - Content to escape
191
+ */
192
+ export declare function escapeBlockQuote(text: string): string;
193
+ //# sourceMappingURL=escapers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escapers.d.ts","sourceRoot":"","sources":["../src/escapers.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;;OAIG;IACH,YAA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CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAErD"}
@@ -0,0 +1,223 @@
1
+ /* eslint-disable prefer-named-capture-group */
2
+ /**
3
+ * Escapes any Discord-flavored markdown in a string.
4
+ *
5
+ * @param text - Content to escape
6
+ * @param options - Options for escaping the markdown
7
+ */
8
+ export function escapeMarkdown(text, options = {}) {
9
+ const { codeBlock = true, inlineCode = true, bold = true, italic = true, underline = true, strikethrough = true, spoiler = true, codeBlockContent = true, inlineCodeContent = true, escape = true, heading = true, bulletedList = true, numberedList = true, maskedLink = true, blockQuote = true, quote = true, } = options;
10
+ if (!codeBlockContent) {
11
+ return text
12
+ .split('```')
13
+ .map((subString, index, array) => {
14
+ if (index % 2 && index !== array.length - 1)
15
+ return subString;
16
+ return escapeMarkdown(subString, {
17
+ inlineCode,
18
+ bold,
19
+ italic,
20
+ underline,
21
+ strikethrough,
22
+ spoiler,
23
+ inlineCodeContent,
24
+ escape,
25
+ heading,
26
+ bulletedList,
27
+ numberedList,
28
+ maskedLink,
29
+ blockQuote,
30
+ quote,
31
+ });
32
+ })
33
+ .join(codeBlock ? '\\`\\`\\`' : '```');
34
+ }
35
+ if (!inlineCodeContent) {
36
+ return text
37
+ .split(/(?<=^|[^`])`(?=[^`]|$)/g)
38
+ .map((subString, index, array) => {
39
+ if (index % 2 && index !== array.length - 1)
40
+ return subString;
41
+ return escapeMarkdown(subString, {
42
+ codeBlock,
43
+ bold,
44
+ italic,
45
+ underline,
46
+ strikethrough,
47
+ spoiler,
48
+ escape,
49
+ heading,
50
+ bulletedList,
51
+ numberedList,
52
+ maskedLink,
53
+ blockQuote,
54
+ quote,
55
+ });
56
+ })
57
+ .join(inlineCode ? '\\`' : '`');
58
+ }
59
+ let res = text;
60
+ if (escape)
61
+ res = escapeEscape(res);
62
+ if (inlineCode)
63
+ res = escapeInlineCode(res);
64
+ if (codeBlock)
65
+ res = escapeCodeBlock(res);
66
+ if (italic)
67
+ res = escapeItalic(res);
68
+ if (bold)
69
+ res = escapeBold(res);
70
+ if (underline)
71
+ res = escapeUnderline(res);
72
+ if (strikethrough)
73
+ res = escapeStrikethrough(res);
74
+ if (spoiler)
75
+ res = escapeSpoiler(res);
76
+ if (heading)
77
+ res = escapeHeading(res);
78
+ if (bulletedList)
79
+ res = escapeBulletedList(res);
80
+ if (numberedList)
81
+ res = escapeNumberedList(res);
82
+ if (maskedLink)
83
+ res = escapeMaskedLink(res);
84
+ if (quote)
85
+ res = escapeQuote(res);
86
+ if (blockQuote)
87
+ res = escapeBlockQuote(res);
88
+ return res;
89
+ }
90
+ /**
91
+ * Escapes code block markdown in a string.
92
+ *
93
+ * @param text - Content to escape
94
+ */
95
+ export function escapeCodeBlock(text) {
96
+ return text.replaceAll('```', '\\`\\`\\`');
97
+ }
98
+ /**
99
+ * Escapes inline code markdown in a string.
100
+ *
101
+ * @param text - Content to escape
102
+ */
103
+ export function escapeInlineCode(text) {
104
+ return text.replaceAll(/(?<=^|[^`])``?(?=[^`]|$)/g, (match) => (match.length === 2 ? '\\`\\`' : '\\`'));
105
+ }
106
+ /**
107
+ * Escapes italic markdown in a string.
108
+ *
109
+ * @param text - Content to escape
110
+ */
111
+ export function escapeItalic(text) {
112
+ let idx = 0;
113
+ const newText = text.replaceAll(/(?<=^|[^*])(?<!(?<!<)https?:\/\/\S*|<[^\s:]+:\/[^\s>]*)\*([^*]|\*\*|$)/g, (_, match) => {
114
+ if (match === '**')
115
+ return ++idx % 2 ? `\\*${match}` : `${match}\\*`;
116
+ return `\\*${match}`;
117
+ });
118
+ idx = 0;
119
+ return newText.replaceAll(/(?<=^|[^_])(?<!<a?:.+|(?<!<)https?:\/\/\S*|<[^\s:]:\/[^\s>]*)_(?!:\d+>)([^_]|__|$)/g, (_, match) => {
120
+ if (match === '__')
121
+ return ++idx % 2 ? `\\_${match}` : `${match}\\_`;
122
+ return `\\_${match}`;
123
+ });
124
+ }
125
+ /**
126
+ * Escapes bold markdown in a string.
127
+ *
128
+ * @param text - Content to escape
129
+ */
130
+ export function escapeBold(text) {
131
+ let idx = 0;
132
+ return text.replaceAll(/\*\*(\*)?/g, (_, match) => {
133
+ if (match)
134
+ return ++idx % 2 ? `${match}\\*\\*` : `\\*\\*${match}`;
135
+ return '\\*\\*';
136
+ });
137
+ }
138
+ /**
139
+ * Escapes underline markdown in a string.
140
+ *
141
+ * @param text - Content to escape
142
+ */
143
+ export function escapeUnderline(text) {
144
+ let idx = 0;
145
+ return text.replaceAll(/(?<!<a?:.+|https?:\/\/\S+)__(_)?(?!:\d+>)/g, (_, match) => {
146
+ if (match)
147
+ return ++idx % 2 ? `${match}\\_\\_` : `\\_\\_${match}`;
148
+ return '\\_\\_';
149
+ });
150
+ }
151
+ /**
152
+ * Escapes strikethrough markdown in a string.
153
+ *
154
+ * @param text - Content to escape
155
+ */
156
+ export function escapeStrikethrough(text) {
157
+ return text.replaceAll('~~', '\\~\\~');
158
+ }
159
+ /**
160
+ * Escapes spoiler markdown in a string.
161
+ *
162
+ * @param text - Content to escape
163
+ */
164
+ export function escapeSpoiler(text) {
165
+ return text.replaceAll('||', '\\|\\|');
166
+ }
167
+ /**
168
+ * Escapes escape characters in a string.
169
+ *
170
+ * @param text - Content to escape
171
+ */
172
+ export function escapeEscape(text) {
173
+ return text.replaceAll('\\', '\\\\');
174
+ }
175
+ /**
176
+ * Escapes heading characters in a string.
177
+ *
178
+ * @param text - Content to escape
179
+ */
180
+ export function escapeHeading(text) {
181
+ return text.replaceAll(/^( {0,2})([*-] )?( *)(#{1,3} )/gm, '$1$2$3\\$4');
182
+ }
183
+ /**
184
+ * Escapes bulleted list characters in a string.
185
+ *
186
+ * @param text - Content to escape
187
+ */
188
+ export function escapeBulletedList(text) {
189
+ return text.replaceAll(/^( *)([*-])( +)/gm, '$1\\$2$3');
190
+ }
191
+ /**
192
+ * Escapes numbered list characters in a string.
193
+ *
194
+ * @param text - Content to escape
195
+ */
196
+ export function escapeNumberedList(text) {
197
+ return text.replaceAll(/^( *\d+)\./gm, '$1\\.');
198
+ }
199
+ /**
200
+ * Escapes masked link characters in a string.
201
+ *
202
+ * @param text - Content to escape
203
+ */
204
+ export function escapeMaskedLink(text) {
205
+ return text.replaceAll(/\[.+]\(.+\)/gm, '\\$&');
206
+ }
207
+ /**
208
+ * Escapes quote characters in a string.
209
+ *
210
+ * @param text - Content to escape
211
+ */
212
+ export function escapeQuote(text) {
213
+ return text.replaceAll(/^(\s*)>(\s+)/gm, '$1\\>$2');
214
+ }
215
+ /**
216
+ * Escapes block quote characters in a string.
217
+ *
218
+ * @param text - Content to escape
219
+ */
220
+ export function escapeBlockQuote(text) {
221
+ return text.replaceAll(/^(\s*)>>>(\s+)/gm, '$1\\>>>$2');
222
+ }
223
+ //# sourceMappingURL=escapers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"escapers.js","sourceRoot":"","sources":["../src/escapers.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAsH/C;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAAC,IAAY,EAAE,OAAO,GAA0B,EAAE;IAC/E,MAAM,EACL,SAAS,GAAG,IAAI,EAChB,UAAU,GAAG,IAAI,EACjB,IAAI,GAAG,IAAI,EACX,MAAM,GAAG,IAAI,EACb,SAAS,GAAG,IAAI,EAChB,aAAa,GAAG,IAAI,EACpB,OAAO,GAAG,IAAI,EACd,gBAAgB,GAAG,IAAI,EACvB,iBAAiB,GAAG,IAAI,EACxB,MAAM,GAAG,IAAI,EACb,OAAO,GAAG,IAAI,EACd,YAAY,GAAG,IAAI,EACnB,YAAY,GAAG,IAAI,EACnB,UAAU,GAAG,IAAI,EACjB,UAAU,GAAG,IAAI,EACjB,KAAK,GAAG,IAAI,GACZ,GAAG,OAAO,CAAC;IAEZ,IAAI,CAAC,gBAAgB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