@flex-development/docmark-util-symbol 1.0.0-dev.1

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/LICENSE.md ADDED
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2024, Flex Development, LLC All rights reserved.
4
+
5
+ Redistribution and use in source and binary forms, with or without modification,
6
+ are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its contributors
16
+ may be used to endorse or promote products derived from this software without
17
+ specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
23
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
26
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md ADDED
@@ -0,0 +1,120 @@
1
+ # docmark-util-symbol
2
+
3
+ [![github release](https://img.shields.io/github/v/release/flex-development/docmark.svg?include_prereleases\&sort=semver)](https://github.com/flex-development/docmark/releases/latest)
4
+ [![npm](https://img.shields.io/npm/v/@flex-development/docmark-util-symbol.svg)](https://npmjs.com/package/@flex-development/docmark-util-symbol)
5
+ [![npm downloads](https://img.shields.io/npm/dm/@flex-development/docmark-util-symbol.svg)](https://www.npmcharts.com/compare/@flex-development/docmark-util-symbol?interval=30)
6
+ [![install size](https://packagephobia.now.sh/badge?p=@flex-development/docmark-util-symbol)](https://packagephobia.now.sh/result?p=@flex-development/docmark-util-symbol)
7
+ [![minified bundle size](https://badgen.net/bundlephobia/min/@flex-development/docmark-util-symbol?cache)](https://bundlephobia.com/package/@flex-development/docmark-util-symbol)
8
+ [![tree shaking suppport](https://badgen.net/bundlephobia/tree-shaking/@flex-development/docmark-util-symbol)](https://bundlephobia.com/package/@flex-development/docmark-util-symbol)
9
+ [![module type: esm](https://img.shields.io/badge/module%20type-esm-brightgreen)](https://github.com/voxpelli/badges-cjs-esm)
10
+ [![license](https://img.shields.io/github/license/flex-development/docmark-util-symbol.svg)](LICENSE.md)
11
+ [![typescript](https://img.shields.io/badge/-typescript-3178c6?logo=typescript\&logoColor=ffffff)](https://typescriptlang.org)
12
+ [![yarn](https://img.shields.io/badge/-yarn-2c8ebb?style=flat\&logo=yarn\&logoColor=ffffff)](https://yarnpkg.com)
13
+
14
+ [docmark][] utility with symbols.
15
+
16
+ ## Contents
17
+
18
+ - [What is this?](#what-is-this)
19
+ - [When should I use this?](#when-should-i-use-this)
20
+ - [Install](#install)
21
+ - [Use](#use)
22
+ - [API](#api)
23
+ - [Types](#types)
24
+ - [Contribute](#contribute)
25
+
26
+ ## What is this?
27
+
28
+ This package exposes constants used throughout the docmark ecosystem.
29
+
30
+ ## When should I use this?
31
+
32
+ This package is useful when making your docmark extensions.
33
+ It’s useful to reference these constants by name instead of value while developing.
34
+
35
+ ## Install
36
+
37
+ This package is [ESM only][esm].
38
+
39
+ In Node.js with [yarn][]:
40
+
41
+ ```sh
42
+ yarn add @flex-development/docmark-util-symbol
43
+ ```
44
+
45
+ <blockquote>
46
+ <small>
47
+ See <a href='https://yarnpkg.com/protocol/git'>Git - Protocols | Yarn</a>
48
+ &nbsp;for details regarding installing from Git.
49
+ </small>
50
+ </blockquote>
51
+
52
+ In Deno with [`esm.sh`][esmsh]:
53
+
54
+ ```ts
55
+ import { chars, codes, constants, ct, ev, tt } from 'https://esm.sh/@flex-development/docmark-util-symbol'
56
+ ```
57
+
58
+ In browsers with [`esm.sh`][esmsh]:
59
+
60
+ ```html
61
+ <script type="module">
62
+ import { chars, codes, constants, ct, ev, tt } from 'https://esm.sh/@flex-development/docmark-util-symbol'
63
+ </script>
64
+ ```
65
+
66
+ ## Use
67
+
68
+ ```js
69
+ import { chars, codes, constants, ct, ev, tt } from '@flex-development/docmark-util-symbol'
70
+
71
+ console.log(chars.at) // '@'
72
+ console.log(codes.at) // 64
73
+ console.log(constants.tabSize) // 4
74
+ console.log(ct.comment) // 'comment'
75
+ console.log(ev.enter) // 'enter'
76
+ console.log(tt.tagName) // 'tagName'
77
+ ```
78
+
79
+ ## API
80
+
81
+ This package exports the identifiers `chars`, `codes`, `constants`, `ct`, `ev`, and `tt`.\
82
+ There is no default export.
83
+
84
+ Each identifier is an object mapping strings to values.\
85
+ See the [code](./src/) for the exposed data.
86
+
87
+ ## Types
88
+
89
+ This package is fully typed with [TypeScript][].
90
+ It exports no additional types.
91
+
92
+ ## Project
93
+
94
+ ### Version
95
+
96
+ docmark-util-symbol adheres to [semver][].
97
+
98
+ ### Contribute
99
+
100
+ See [`CONTRIBUTING.md`](../../CONTRIBUTING.md).
101
+
102
+ This project has a [code of conduct](../../CODE_OF_CONDUCT.md).
103
+ By interacting with this repository, organization, or community you agree to abide by its terms.
104
+
105
+ ### Sponsor
106
+
107
+ Small primitives power larger systems.
108
+ Support long-term stability by sponsoring Flex Development.
109
+
110
+ [docmark]: ../../README.md
111
+
112
+ [esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
113
+
114
+ [esmsh]: https://esm.sh
115
+
116
+ [semver]: https://semver.org
117
+
118
+ [typescript]: https://www.typescriptlang.org
119
+
120
+ [yarn]: https://yarnpkg.com
@@ -0,0 +1,601 @@
1
+ /**
2
+ * @file chars
3
+ * @module docmark-util-symbol/chars
4
+ */
5
+ /**
6
+ * Character dictionary.
7
+ *
8
+ * Although docmark works based on character codes,
9
+ * this module includes string versions of those codes.
10
+ *
11
+ * @see https://symbl.cc/en/unicode/blocks/basic-latin
12
+ * @see https://symbl.cc/en/unicode/blocks/latin-1-supplement
13
+ *
14
+ * @enum {string | null}
15
+ */
16
+ declare const chars: {
17
+ readonly ack: "\u0006";
18
+ readonly ampersand: "&";
19
+ readonly apostrophe: "'";
20
+ readonly asterisk: "*";
21
+ readonly at: "@";
22
+ readonly atSign: "@";
23
+ readonly backslash: "\\";
24
+ readonly bar: "|";
25
+ readonly bel: "\u0007";
26
+ readonly bom: "";
27
+ readonly break: "";
28
+ readonly bs: "\b";
29
+ readonly can: "\u0018";
30
+ readonly caret: "^";
31
+ readonly colon: ":";
32
+ readonly comma: ",";
33
+ readonly cr: "\r";
34
+ readonly crlf: "\r\n";
35
+ readonly dash: "-";
36
+ readonly dc1: "\u0011";
37
+ readonly dc2: "\u0012";
38
+ readonly dc3: "\u0013";
39
+ readonly dc4: "\u0014";
40
+ readonly del: "";
41
+ readonly digit0: "0";
42
+ readonly digit1: "1";
43
+ readonly digit2: "2";
44
+ readonly digit3: "3";
45
+ readonly digit4: "4";
46
+ readonly digit5: "5";
47
+ readonly digit6: "6";
48
+ readonly digit7: "7";
49
+ readonly digit8: "8";
50
+ readonly digit9: "9";
51
+ readonly dle: "\u0010";
52
+ readonly dollar: "$";
53
+ readonly dollarSign: "$";
54
+ readonly dot: ".";
55
+ readonly ellipsis: "...";
56
+ readonly em: "\u0019";
57
+ readonly empty: "";
58
+ readonly enq: "\u0005";
59
+ readonly eof: null;
60
+ readonly eos: null;
61
+ readonly eot: "\u0004";
62
+ readonly equal: "=";
63
+ readonly equalsTo: "=";
64
+ readonly esc: "\u001B";
65
+ readonly etb: "\u0017";
66
+ readonly etx: "\u0003";
67
+ readonly exclamation: "!";
68
+ readonly exclamationMark: "!";
69
+ readonly ff: "\f";
70
+ readonly fs: "\u001C";
71
+ readonly graveAccent: "`";
72
+ readonly greaterThan: ">";
73
+ readonly gs: "\u001D";
74
+ readonly gt: ">";
75
+ readonly hash: "#";
76
+ readonly ht: "\t";
77
+ readonly hyphen: "-";
78
+ readonly leftAngleBracket: "<";
79
+ readonly leftBrace: "{";
80
+ readonly leftBracket: "[";
81
+ readonly leftCurlyBrace: "{";
82
+ readonly leftParen: "(";
83
+ readonly leftParenthesis: "(";
84
+ readonly leftSquareBracket: "[";
85
+ readonly lessThan: "<";
86
+ readonly lf: "\n";
87
+ readonly lowercaseA: "a";
88
+ readonly lowercaseB: "b";
89
+ readonly lowercaseC: "c";
90
+ readonly lowercaseD: "d";
91
+ readonly lowercaseE: "e";
92
+ readonly lowercaseF: "f";
93
+ readonly lowercaseG: "g";
94
+ readonly lowercaseH: "h";
95
+ readonly lowercaseI: "i";
96
+ readonly lowercaseJ: "j";
97
+ readonly lowercaseK: "k";
98
+ readonly lowercaseL: "l";
99
+ readonly lowercaseM: "m";
100
+ readonly lowercaseN: "n";
101
+ readonly lowercaseO: "o";
102
+ readonly lowercaseP: "p";
103
+ readonly lowercaseQ: "q";
104
+ readonly lowercaseR: "r";
105
+ readonly lowercaseS: "s";
106
+ readonly lowercaseT: "t";
107
+ readonly lowercaseU: "u";
108
+ readonly lowercaseV: "v";
109
+ readonly lowercaseW: "w";
110
+ readonly lowercaseX: "x";
111
+ readonly lowercaseY: "y";
112
+ readonly lowercaseZ: "z";
113
+ readonly ls: "\u2028";
114
+ readonly lt: "<";
115
+ readonly minus: "-";
116
+ readonly nak: "\u0015";
117
+ readonly nbsp: " ";
118
+ readonly nul: "\0";
119
+ readonly numberSign: "#";
120
+ readonly percent: "%";
121
+ readonly percentSign: "%";
122
+ readonly plus: "+";
123
+ readonly plusSign: "+";
124
+ readonly ps: "\u2029";
125
+ readonly questionMark: "?";
126
+ readonly quotation: "\"";
127
+ readonly quotationMark: "\"";
128
+ readonly replacement: "�";
129
+ readonly replacementCharacter: "�";
130
+ readonly rightAngleBracket: ">";
131
+ readonly rightBrace: "}";
132
+ readonly rightBracket: "]";
133
+ readonly rightCurlyBrace: "}";
134
+ readonly rightParen: ")";
135
+ readonly rightParenthesis: ")";
136
+ readonly rightSquareBracket: "]";
137
+ readonly rs: "\u001E";
138
+ readonly semicolon: ";";
139
+ readonly si: "\u000F";
140
+ readonly slash: "/";
141
+ readonly so: "\u000E";
142
+ readonly soh: "\u0001";
143
+ readonly space: " ";
144
+ readonly stx: "\u0002";
145
+ readonly sub: "\u001A";
146
+ readonly syn: "\u0016";
147
+ readonly tilde: "~";
148
+ readonly underscore: "_";
149
+ readonly uppercaseA: "A";
150
+ readonly uppercaseB: "B";
151
+ readonly uppercaseC: "C";
152
+ readonly uppercaseD: "D";
153
+ readonly uppercaseE: "E";
154
+ readonly uppercaseF: "F";
155
+ readonly uppercaseG: "G";
156
+ readonly uppercaseH: "H";
157
+ readonly uppercaseI: "I";
158
+ readonly uppercaseJ: "J";
159
+ readonly uppercaseK: "K";
160
+ readonly uppercaseL: "L";
161
+ readonly uppercaseM: "M";
162
+ readonly uppercaseN: "N";
163
+ readonly uppercaseO: "O";
164
+ readonly uppercaseP: "P";
165
+ readonly uppercaseQ: "Q";
166
+ readonly uppercaseR: "R";
167
+ readonly uppercaseS: "S";
168
+ readonly uppercaseT: "T";
169
+ readonly uppercaseU: "U";
170
+ readonly uppercaseV: "V";
171
+ readonly uppercaseW: "W";
172
+ readonly uppercaseX: "X";
173
+ readonly uppercaseY: "Y";
174
+ readonly uppercaseZ: "Z";
175
+ readonly us: "\u001F";
176
+ readonly verticalBar: "|";
177
+ readonly vt: "\v";
178
+ readonly zwj: "‍";
179
+ readonly zwnj: "‌";
180
+ };
181
+
182
+ /**
183
+ * @file codes
184
+ * @module docmark-util-symbol/codes
185
+ */
186
+ /**
187
+ * Character codes.
188
+ *
189
+ * docmark works based on character codes.
190
+ * This module contains constants for the ASCII block and the replacement
191
+ * character.
192
+ *
193
+ * A few codes are handled in a special way, such as line endings (CR, LF,
194
+ * and CR+LF, commonly known as end-of-line: EOLs), as well as tab (horizontal
195
+ * tab) and its expansion based on what column it’s at (virtual space).
196
+ * As values are preprocessed before handling them, the actual characters LF,
197
+ * CR, and HT are guaranteed to not exist.
198
+ *
199
+ * @see https://symbl.cc/en/unicode/blocks/basic-latin
200
+ * @see https://symbl.cc/en/unicode/blocks/latin-1-supplement
201
+ * @see https://util.unicode.org/UnicodeJsps/character.jsp
202
+ * @see https://util.unicode.org/UnicodeJsps/list-unicodeset.jsp
203
+ *
204
+ * @enum {string | null}
205
+ */
206
+ declare const codes: {
207
+ readonly eof: null;
208
+ readonly eos: null;
209
+ readonly bos: -1000;
210
+ readonly sof: -1000;
211
+ readonly empty: -999;
212
+ readonly break: -13;
213
+ readonly carriageReturn: -5;
214
+ readonly lineFeed: -4;
215
+ readonly carriageReturnLineFeed: -3;
216
+ readonly horizontalTab: -2;
217
+ readonly virtualSpace: -1;
218
+ readonly nul: 0;
219
+ readonly soh: 1;
220
+ readonly stx: 2;
221
+ readonly etx: 3;
222
+ readonly eot: 4;
223
+ readonly enq: 5;
224
+ readonly ack: 6;
225
+ readonly bel: 7;
226
+ readonly bs: 8;
227
+ readonly ht: 9;
228
+ readonly lf: 10;
229
+ readonly vt: 11;
230
+ readonly ff: 12;
231
+ readonly cr: 13;
232
+ readonly so: 14;
233
+ readonly si: 15;
234
+ readonly dle: 16;
235
+ readonly dc1: 17;
236
+ readonly dc2: 18;
237
+ readonly dc3: 19;
238
+ readonly dc4: 20;
239
+ readonly nak: 21;
240
+ readonly syn: 22;
241
+ readonly etb: 23;
242
+ readonly can: 24;
243
+ readonly em: 25;
244
+ readonly sub: 26;
245
+ readonly esc: 27;
246
+ readonly fs: 28;
247
+ readonly gs: 29;
248
+ readonly rs: 30;
249
+ readonly us: 31;
250
+ readonly space: 32;
251
+ readonly exclamationMark: 33;
252
+ readonly quotationMark: 34;
253
+ readonly numberSign: 35;
254
+ readonly dollarSign: 36;
255
+ readonly percentSign: 37;
256
+ readonly ampersand: 38;
257
+ readonly apostrophe: 39;
258
+ readonly leftParenthesis: 40;
259
+ readonly rightParenthesis: 41;
260
+ readonly asterisk: 42;
261
+ readonly plusSign: 43;
262
+ readonly comma: 44;
263
+ readonly dash: 45;
264
+ readonly dot: 46;
265
+ readonly slash: 47;
266
+ readonly digit0: 48;
267
+ readonly digit1: 49;
268
+ readonly digit2: 50;
269
+ readonly digit3: 51;
270
+ readonly digit4: 52;
271
+ readonly digit5: 53;
272
+ readonly digit6: 54;
273
+ readonly digit7: 55;
274
+ readonly digit8: 56;
275
+ readonly digit9: 57;
276
+ readonly colon: 58;
277
+ readonly semicolon: 59;
278
+ readonly lessThan: 60;
279
+ readonly equalsTo: 61;
280
+ readonly greaterThan: 62;
281
+ readonly questionMark: 63;
282
+ readonly atSign: 64;
283
+ readonly uppercaseA: 65;
284
+ readonly uppercaseB: 66;
285
+ readonly uppercaseC: 67;
286
+ readonly uppercaseD: 68;
287
+ readonly uppercaseE: 69;
288
+ readonly uppercaseF: 70;
289
+ readonly uppercaseG: 71;
290
+ readonly uppercaseH: 72;
291
+ readonly uppercaseI: 73;
292
+ readonly uppercaseJ: 74;
293
+ readonly uppercaseK: 75;
294
+ readonly uppercaseL: 76;
295
+ readonly uppercaseM: 77;
296
+ readonly uppercaseN: 78;
297
+ readonly uppercaseO: 79;
298
+ readonly uppercaseP: 80;
299
+ readonly uppercaseQ: 81;
300
+ readonly uppercaseR: 82;
301
+ readonly uppercaseS: 83;
302
+ readonly uppercaseT: 84;
303
+ readonly uppercaseU: 85;
304
+ readonly uppercaseV: 86;
305
+ readonly uppercaseW: 87;
306
+ readonly uppercaseX: 88;
307
+ readonly uppercaseY: 89;
308
+ readonly uppercaseZ: 90;
309
+ readonly leftSquareBracket: 91;
310
+ readonly backslash: 92;
311
+ readonly rightSquareBracket: 93;
312
+ readonly caret: 94;
313
+ readonly underscore: 95;
314
+ readonly graveAccent: 96;
315
+ readonly lowercaseA: 97;
316
+ readonly lowercaseB: 98;
317
+ readonly lowercaseC: 99;
318
+ readonly lowercaseD: 100;
319
+ readonly lowercaseE: 101;
320
+ readonly lowercaseF: 102;
321
+ readonly lowercaseG: 103;
322
+ readonly lowercaseH: 104;
323
+ readonly lowercaseI: 105;
324
+ readonly lowercaseJ: 106;
325
+ readonly lowercaseK: 107;
326
+ readonly lowercaseL: 108;
327
+ readonly lowercaseM: 109;
328
+ readonly lowercaseN: 110;
329
+ readonly lowercaseO: 111;
330
+ readonly lowercaseP: 112;
331
+ readonly lowercaseQ: 113;
332
+ readonly lowercaseR: 114;
333
+ readonly lowercaseS: 115;
334
+ readonly lowercaseT: 116;
335
+ readonly lowercaseU: 117;
336
+ readonly lowercaseV: 118;
337
+ readonly lowercaseW: 119;
338
+ readonly lowercaseX: 120;
339
+ readonly lowercaseY: 121;
340
+ readonly lowercaseZ: 122;
341
+ readonly leftCurlyBrace: 123;
342
+ readonly verticalBar: 124;
343
+ readonly rightCurlyBrace: 125;
344
+ readonly tilde: 126;
345
+ readonly del: 127;
346
+ readonly nbsp: 160;
347
+ readonly zwnj: 8204;
348
+ readonly zwj: 8205;
349
+ readonly ls: 8232;
350
+ readonly ps: 8233;
351
+ readonly bom: 65279;
352
+ readonly byteOrderMarker: 65279;
353
+ readonly replacement: 65533;
354
+ readonly replacementCharacter: 65533;
355
+ };
356
+
357
+ /**
358
+ * @file constants
359
+ * @module docmark-util-symbol/constants
360
+ */
361
+ /**
362
+ * Constant values.
363
+ *
364
+ * @enum {number | string}
365
+ */
366
+ declare const constants: {
367
+ readonly attentionSideAfter: 2;
368
+ readonly attentionSideBefore: 1;
369
+ readonly atxHeadingOpeningFenceSizeMax: 6;
370
+ readonly autolinkDomainSizeMax: 63;
371
+ readonly autolinkSchemeSizeMax: 32;
372
+ readonly cdataOpeningString: "CDATA[";
373
+ readonly characterGroupPunctuation: 2;
374
+ readonly characterGroupWhitespace: 1;
375
+ readonly characterReferenceDecimalSizeMax: 7;
376
+ readonly characterReferenceHexadecimalSizeMax: 6;
377
+ readonly characterReferenceNamedSizeMax: 31;
378
+ readonly codeFencedSequenceSizeMin: 3;
379
+ readonly commentPaddingSizeMin: 2;
380
+ readonly contentTypeComment: "comment";
381
+ readonly contentTypeContent: "content";
382
+ readonly contentTypeDocument: "document";
383
+ readonly contentTypeFlow: "flow";
384
+ readonly contentTypeSource: "source";
385
+ readonly contentTypeString: "string";
386
+ readonly contentTypeText: "text";
387
+ readonly contentTypeType: "type";
388
+ readonly hardBreakPrefixSizeMin: 2;
389
+ readonly htmlBasic: 6;
390
+ readonly htmlCdata: 5;
391
+ readonly htmlComment: 2;
392
+ readonly htmlComplete: 7;
393
+ readonly htmlDeclaration: 4;
394
+ readonly htmlInstruction: 3;
395
+ readonly htmlRaw: 1;
396
+ readonly htmlRawSizeMax: 8;
397
+ readonly linkReferenceSizeMax: 999;
398
+ readonly linkResourceDestinationBalanceMax: 32;
399
+ readonly listItemValueSizeMax: 10;
400
+ readonly numericBaseDecimal: 10;
401
+ readonly numericBaseHexadecimal: 16;
402
+ readonly tabSize: 4;
403
+ readonly thematicBreakMarkerCountMin: 3;
404
+ readonly v8MaxSafeChunkSize: 10000;
405
+ };
406
+
407
+ /**
408
+ * @file ct
409
+ * @module docmark-util-symbol/ct
410
+ */
411
+ /**
412
+ * Registry of all content types used by docmark.
413
+ *
414
+ * @enum {string}
415
+ */
416
+ declare const ct: {
417
+ readonly comment: "comment";
418
+ readonly content: "content";
419
+ readonly document: "document";
420
+ readonly flow: "flow";
421
+ readonly source: "source";
422
+ readonly string: "string";
423
+ readonly text: "text";
424
+ readonly type: "type";
425
+ };
426
+
427
+ /**
428
+ * @file ev
429
+ * @module docmark-util-symbol/ev
430
+ */
431
+ /**
432
+ * Event types used by docmark.
433
+ *
434
+ * @enum {'enter' | 'ext'}
435
+ */
436
+ declare const ev: {
437
+ readonly enter: "enter";
438
+ readonly exit: "exit";
439
+ };
440
+
441
+ /**
442
+ * @file kind
443
+ * @module docmark-util-symbol/kind
444
+ */
445
+ /**
446
+ * Registry of all comment kinds exposed by docmark.
447
+ *
448
+ * @enum {string}
449
+ */
450
+ declare const kind: {
451
+ readonly block: "block";
452
+ readonly docblock: "docblock";
453
+ readonly line: "line";
454
+ };
455
+
456
+ /**
457
+ * @file tt
458
+ * @module docmark-util-symbol/tt
459
+ */
460
+ /**
461
+ * Registry of all token types exposed by docmark.
462
+ *
463
+ * @todo remove extension-specific types
464
+ *
465
+ * @enum {string}
466
+ */
467
+ declare const tt: {
468
+ readonly atxHeading: "atxHeading";
469
+ readonly atxHeadingSequence: "atxHeadingSequence";
470
+ readonly atxHeadingText: "atxHeadingText";
471
+ readonly autolink: "autolink";
472
+ readonly autolinkEmail: "autolinkEmail";
473
+ readonly autolinkMarker: "autolinkMarker";
474
+ readonly autolinkProtocol: "autolinkProtocol";
475
+ readonly blockQuote: "blockQuote";
476
+ readonly blockQuoteMarker: "blockQuoteMarker";
477
+ readonly blockQuotePrefix: "blockQuotePrefix";
478
+ readonly blockQuotePrefixWhitespace: "blockQuotePrefixWhitespace";
479
+ readonly blockTag: "blockTag";
480
+ readonly characterEscape: "characterEscape";
481
+ readonly characterEscapeValue: "characterEscapeValue";
482
+ readonly characterReference: "characterReference";
483
+ readonly characterReferenceMarker: "characterReferenceMarker";
484
+ readonly characterReferenceMarkerHexadecimal: "characterReferenceMarkerHexadecimal";
485
+ readonly characterReferenceMarkerNumeric: "characterReferenceMarkerNumeric";
486
+ readonly characterReferenceValue: "characterReferenceValue";
487
+ readonly chunkComment: "chunkComment";
488
+ readonly chunkContent: "chunkContent";
489
+ readonly chunkDocument: "chunkDocument";
490
+ readonly chunkFlow: "chunkFlow";
491
+ readonly chunkMarkdown: "chunkMarkdown";
492
+ readonly chunkString: "chunkString";
493
+ readonly chunkText: "chunkText";
494
+ readonly chunkType: "chunkType";
495
+ readonly codeFenced: "codeFenced";
496
+ readonly codeFencedFence: "codeFencedFence";
497
+ readonly codeFencedFenceInfo: "codeFencedFenceInfo";
498
+ readonly codeFencedFenceMeta: "codeFencedFenceMeta";
499
+ readonly codeFencedFenceSequence: "codeFencedFenceSequence";
500
+ readonly codeFlowValue: "codeFlowValue";
501
+ readonly codeIndented: "codeIndented";
502
+ readonly codeText: "codeText";
503
+ readonly codeTextData: "codeTextData";
504
+ readonly codeTextPadding: "codeTextPadding";
505
+ readonly codeTextSequence: "codeTextSequence";
506
+ readonly comment: "comment";
507
+ readonly commentCloser: "commentCloser";
508
+ readonly commentLineMarker: "commentLineMarker";
509
+ readonly commentLinePrefix: "commentLinePrefix";
510
+ readonly commentOpener: "commentOpener";
511
+ readonly commentPadding: "commentPadding";
512
+ readonly content: "content";
513
+ readonly data: "data";
514
+ readonly definition: "definition";
515
+ readonly definitionDestination: "definitionDestination";
516
+ readonly definitionDestinationLiteral: "definitionDestinationLiteral";
517
+ readonly definitionDestinationLiteralMarker: "definitionDestinationLiteralMarker";
518
+ readonly definitionDestinationRaw: "definitionDestinationRaw";
519
+ readonly definitionDestinationString: "definitionDestinationString";
520
+ readonly definitionLabel: "definitionLabel";
521
+ readonly definitionLabelMarker: "definitionLabelMarker";
522
+ readonly definitionLabelString: "definitionLabelString";
523
+ readonly definitionMarker: "definitionMarker";
524
+ readonly definitionTitle: "definitionTitle";
525
+ readonly definitionTitleMarker: "definitionTitleMarker";
526
+ readonly definitionTitleString: "definitionTitleString";
527
+ readonly emphasis: "emphasis";
528
+ readonly emphasisSequence: "emphasisSequence";
529
+ readonly emphasisText: "emphasisText";
530
+ readonly eoc: "eoc";
531
+ readonly escapeMarker: "escapeMarker";
532
+ readonly hardBreakEscape: "hardBreakEscape";
533
+ readonly hardBreakTrailing: "hardBreakTrailing";
534
+ readonly htmlFlow: "htmlFlow";
535
+ readonly htmlFlowData: "htmlFlowData";
536
+ readonly htmlText: "htmlText";
537
+ readonly htmlTextData: "htmlTextData";
538
+ readonly identifier: "identifier";
539
+ readonly image: "image";
540
+ readonly inlineTag: "inlineTag";
541
+ readonly inlineTagMarker: "inlineTagMarker";
542
+ readonly inlineTagText: "inlineTagText";
543
+ readonly label: "label";
544
+ readonly labelEnd: "labelEnd";
545
+ readonly labelImage: "labelImage";
546
+ readonly labelImageMarker: "labelImageMarker";
547
+ readonly labelLink: "labelLink";
548
+ readonly labelMarker: "labelMarker";
549
+ readonly labelText: "labelText";
550
+ readonly lineEnding: "lineEnding";
551
+ readonly lineEndingBlank: "lineEndingBlank";
552
+ readonly linePrefix: "linePrefix";
553
+ readonly lineSuffix: "lineSuffix";
554
+ readonly link: "link";
555
+ readonly listItemIndent: "listItemIndent";
556
+ readonly listItemMarker: "listItemMarker";
557
+ readonly listItemPrefix: "listItemPrefix";
558
+ readonly listItemPrefixWhitespace: "listItemPrefixWhitespace";
559
+ readonly listItemValue: "listItemValue";
560
+ readonly listOrdered: "listOrdered";
561
+ readonly listUnordered: "listUnordered";
562
+ readonly namepath: "namepath";
563
+ readonly namepathConnector: "namepathConnector";
564
+ readonly namepathIdentifier: "namepathIdentifier";
565
+ readonly namepathMarker: "namepathMarker";
566
+ readonly paragraph: "paragraph";
567
+ readonly reference: "reference";
568
+ readonly referenceMarker: "referenceMarker";
569
+ readonly referenceString: "referenceString";
570
+ readonly resource: "resource";
571
+ readonly resourceDestination: "resourceDestination";
572
+ readonly resourceDestinationLiteral: "resourceDestinationLiteral";
573
+ readonly resourceDestinationLiteralMarker: "resourceDestinationLiteralMarker";
574
+ readonly resourceDestinationRaw: "resourceDestinationRaw";
575
+ readonly resourceDestinationString: "resourceDestinationString";
576
+ readonly resourceMarker: "resourceMarker";
577
+ readonly resourceTitle: "resourceTitle";
578
+ readonly resourceTitleMarker: "resourceTitleMarker";
579
+ readonly resourceTitleString: "resourceTitleString";
580
+ readonly setextHeading: "setextHeading";
581
+ readonly setextHeadingLine: "setextHeadingLine";
582
+ readonly setextHeadingLineSequence: "setextHeadingLineSequence";
583
+ readonly setextHeadingText: "setextHeadingText";
584
+ readonly strong: "strong";
585
+ readonly strongSequence: "strongSequence";
586
+ readonly strongText: "strongText";
587
+ readonly summary: "summary";
588
+ readonly summaryMarker: "summaryMarker";
589
+ readonly tagName: "tagName";
590
+ readonly tagNameIdentifier: "tagNameIdentifier";
591
+ readonly tagNameMarker: "tagNameMarker";
592
+ readonly thematicBreak: "thematicBreak";
593
+ readonly thematicBreakSequence: "thematicBreakSequence";
594
+ readonly typeExpression: "typeExpression";
595
+ readonly typeExpressionValue: "typeExpressionValue";
596
+ readonly typeMetadata: "typeMetadata";
597
+ readonly typeMetadataMarker: "typeMetadataMarker";
598
+ readonly whitespace: "whitespace";
599
+ };
600
+
601
+ export { chars, codes, constants, ct, ev, kind, tt };
package/dist/index.mjs ADDED
@@ -0,0 +1,515 @@
1
+ const chars = {
2
+ ack: '\u0006',
3
+ ampersand: '&',
4
+ apostrophe: '\'',
5
+ asterisk: '*',
6
+ at: '@',
7
+ atSign: '@',
8
+ backslash: '\\',
9
+ bar: '|',
10
+ bel: '\u0007',
11
+ bom: '\ufeff',
12
+ break: '',
13
+ bs: '\b',
14
+ can: '\u0018',
15
+ caret: '^',
16
+ colon: ':',
17
+ comma: ',',
18
+ cr: '\r',
19
+ crlf: '\r\n',
20
+ dash: '-',
21
+ dc1: '\u0011',
22
+ dc2: '\u0012',
23
+ dc3: '\u0013',
24
+ dc4: '\u0014',
25
+ del: '\u007f',
26
+ digit0: '0',
27
+ digit1: '1',
28
+ digit2: '2',
29
+ digit3: '3',
30
+ digit4: '4',
31
+ digit5: '5',
32
+ digit6: '6',
33
+ digit7: '7',
34
+ digit8: '8',
35
+ digit9: '9',
36
+ dle: '\u0010',
37
+ dollar: '$',
38
+ dollarSign: '$',
39
+ dot: '.',
40
+ ellipsis: '...',
41
+ em: '\u0019',
42
+ empty: '',
43
+ enq: '\u0005',
44
+ eof: null,
45
+ eos: null,
46
+ eot: '\u0004',
47
+ equal: '=',
48
+ equalsTo: '=',
49
+ esc: '\u001b',
50
+ etb: '\u0017',
51
+ etx: '\u0003',
52
+ exclamation: '!',
53
+ exclamationMark: '!',
54
+ ff: '\f',
55
+ fs: '\u001c',
56
+ graveAccent: '`',
57
+ greaterThan: '>',
58
+ gs: '\u001d',
59
+ gt: '>',
60
+ hash: '#',
61
+ ht: '\t',
62
+ hyphen: '-',
63
+ leftAngleBracket: '<',
64
+ leftBrace: '{',
65
+ leftBracket: '[',
66
+ leftCurlyBrace: '{',
67
+ leftParen: '(',
68
+ leftParenthesis: '(',
69
+ leftSquareBracket: '[',
70
+ lessThan: '<',
71
+ lf: '\n',
72
+ lowercaseA: 'a',
73
+ lowercaseB: 'b',
74
+ lowercaseC: 'c',
75
+ lowercaseD: 'd',
76
+ lowercaseE: 'e',
77
+ lowercaseF: 'f',
78
+ lowercaseG: 'g',
79
+ lowercaseH: 'h',
80
+ lowercaseI: 'i',
81
+ lowercaseJ: 'j',
82
+ lowercaseK: 'k',
83
+ lowercaseL: 'l',
84
+ lowercaseM: 'm',
85
+ lowercaseN: 'n',
86
+ lowercaseO: 'o',
87
+ lowercaseP: 'p',
88
+ lowercaseQ: 'q',
89
+ lowercaseR: 'r',
90
+ lowercaseS: 's',
91
+ lowercaseT: 't',
92
+ lowercaseU: 'u',
93
+ lowercaseV: 'v',
94
+ lowercaseW: 'w',
95
+ lowercaseX: 'x',
96
+ lowercaseY: 'y',
97
+ lowercaseZ: 'z',
98
+ ls: '\u2028',
99
+ lt: '<',
100
+ minus: '-',
101
+ nak: '\u0015',
102
+ nbsp: '\u00a0',
103
+ nul: '\0',
104
+ numberSign: '#',
105
+ percent: '%',
106
+ percentSign: '%',
107
+ plus: '+',
108
+ plusSign: '+',
109
+ ps: '\u2029',
110
+ questionMark: '?',
111
+ quotation: '"',
112
+ quotationMark: '"',
113
+ replacement: '�',
114
+ replacementCharacter: '�',
115
+ rightAngleBracket: '>',
116
+ rightBrace: '}',
117
+ rightBracket: ']',
118
+ rightCurlyBrace: '}',
119
+ rightParen: ')',
120
+ rightParenthesis: ')',
121
+ rightSquareBracket: ']',
122
+ rs: '\u001e',
123
+ semicolon: ';',
124
+ si: '\u000f',
125
+ slash: '/',
126
+ so: '\u000e',
127
+ soh: '\u0001',
128
+ space: ' ',
129
+ stx: '\u0002',
130
+ sub: '\u001a',
131
+ syn: '\u0016',
132
+ tilde: '~',
133
+ underscore: '_',
134
+ uppercaseA: 'A',
135
+ uppercaseB: 'B',
136
+ uppercaseC: 'C',
137
+ uppercaseD: 'D',
138
+ uppercaseE: 'E',
139
+ uppercaseF: 'F',
140
+ uppercaseG: 'G',
141
+ uppercaseH: 'H',
142
+ uppercaseI: 'I',
143
+ uppercaseJ: 'J',
144
+ uppercaseK: 'K',
145
+ uppercaseL: 'L',
146
+ uppercaseM: 'M',
147
+ uppercaseN: 'N',
148
+ uppercaseO: 'O',
149
+ uppercaseP: 'P',
150
+ uppercaseQ: 'Q',
151
+ uppercaseR: 'R',
152
+ uppercaseS: 'S',
153
+ uppercaseT: 'T',
154
+ uppercaseU: 'U',
155
+ uppercaseV: 'V',
156
+ uppercaseW: 'W',
157
+ uppercaseX: 'X',
158
+ uppercaseY: 'Y',
159
+ uppercaseZ: 'Z',
160
+ us: '\u001f',
161
+ verticalBar: '|',
162
+ vt: '\v',
163
+ zwj: '\u200d',
164
+ zwnj: '\u200c'
165
+ };
166
+
167
+ const codes = {
168
+ eof: null,
169
+ eos: null,
170
+ bos: -1e3,
171
+ sof: -1e3,
172
+ empty: -999,
173
+ break: -13,
174
+ carriageReturn: -5,
175
+ lineFeed: -4,
176
+ carriageReturnLineFeed: -3,
177
+ horizontalTab: -2,
178
+ virtualSpace: -1,
179
+ nul: 0,
180
+ soh: 1,
181
+ stx: 2,
182
+ etx: 3,
183
+ eot: 4,
184
+ enq: 5,
185
+ ack: 6,
186
+ bel: 7,
187
+ bs: 8,
188
+ ht: 9,
189
+ lf: 10,
190
+ vt: 11,
191
+ ff: 12,
192
+ cr: 13,
193
+ so: 14,
194
+ si: 15,
195
+ dle: 16,
196
+ dc1: 17,
197
+ dc2: 18,
198
+ dc3: 19,
199
+ dc4: 20,
200
+ nak: 21,
201
+ syn: 22,
202
+ etb: 23,
203
+ can: 24,
204
+ em: 25,
205
+ sub: 26,
206
+ esc: 27,
207
+ fs: 28,
208
+ gs: 29,
209
+ rs: 30,
210
+ us: 31,
211
+ space: 32,
212
+ exclamationMark: 33,
213
+ quotationMark: 34,
214
+ numberSign: 35,
215
+ dollarSign: 36,
216
+ percentSign: 37,
217
+ ampersand: 38,
218
+ apostrophe: 39,
219
+ leftParenthesis: 40,
220
+ rightParenthesis: 41,
221
+ asterisk: 42,
222
+ plusSign: 43,
223
+ comma: 44,
224
+ dash: 45,
225
+ dot: 46,
226
+ slash: 47,
227
+ digit0: 48,
228
+ digit1: 49,
229
+ digit2: 50,
230
+ digit3: 51,
231
+ digit4: 52,
232
+ digit5: 53,
233
+ digit6: 54,
234
+ digit7: 55,
235
+ digit8: 56,
236
+ digit9: 57,
237
+ colon: 58,
238
+ semicolon: 59,
239
+ lessThan: 60,
240
+ equalsTo: 61,
241
+ greaterThan: 62,
242
+ questionMark: 63,
243
+ atSign: 64,
244
+ uppercaseA: 65,
245
+ uppercaseB: 66,
246
+ uppercaseC: 67,
247
+ uppercaseD: 68,
248
+ uppercaseE: 69,
249
+ uppercaseF: 70,
250
+ uppercaseG: 71,
251
+ uppercaseH: 72,
252
+ uppercaseI: 73,
253
+ uppercaseJ: 74,
254
+ uppercaseK: 75,
255
+ uppercaseL: 76,
256
+ uppercaseM: 77,
257
+ uppercaseN: 78,
258
+ uppercaseO: 79,
259
+ uppercaseP: 80,
260
+ uppercaseQ: 81,
261
+ uppercaseR: 82,
262
+ uppercaseS: 83,
263
+ uppercaseT: 84,
264
+ uppercaseU: 85,
265
+ uppercaseV: 86,
266
+ uppercaseW: 87,
267
+ uppercaseX: 88,
268
+ uppercaseY: 89,
269
+ uppercaseZ: 90,
270
+ leftSquareBracket: 91,
271
+ backslash: 92,
272
+ rightSquareBracket: 93,
273
+ caret: 94,
274
+ underscore: 95,
275
+ graveAccent: 96,
276
+ lowercaseA: 97,
277
+ lowercaseB: 98,
278
+ lowercaseC: 99,
279
+ lowercaseD: 100,
280
+ lowercaseE: 101,
281
+ lowercaseF: 102,
282
+ lowercaseG: 103,
283
+ lowercaseH: 104,
284
+ lowercaseI: 105,
285
+ lowercaseJ: 106,
286
+ lowercaseK: 107,
287
+ lowercaseL: 108,
288
+ lowercaseM: 109,
289
+ lowercaseN: 110,
290
+ lowercaseO: 111,
291
+ lowercaseP: 112,
292
+ lowercaseQ: 113,
293
+ lowercaseR: 114,
294
+ lowercaseS: 115,
295
+ lowercaseT: 116,
296
+ lowercaseU: 117,
297
+ lowercaseV: 118,
298
+ lowercaseW: 119,
299
+ lowercaseX: 120,
300
+ lowercaseY: 121,
301
+ lowercaseZ: 122,
302
+ leftCurlyBrace: 123,
303
+ verticalBar: 124,
304
+ rightCurlyBrace: 125,
305
+ tilde: 126,
306
+ del: 127,
307
+ nbsp: 160,
308
+ zwnj: 8204,
309
+ zwj: 8205,
310
+ ls: 8232,
311
+ ps: 8233,
312
+ bom: 65_279,
313
+ byteOrderMarker: 65_279,
314
+ replacement: 65_533,
315
+ replacementCharacter: 65_533
316
+ };
317
+
318
+ const constants = {
319
+ attentionSideAfter: 2,
320
+ attentionSideBefore: 1,
321
+ atxHeadingOpeningFenceSizeMax: 6,
322
+ autolinkDomainSizeMax: 63,
323
+ autolinkSchemeSizeMax: 32,
324
+ cdataOpeningString: 'CDATA[',
325
+ characterGroupPunctuation: 2,
326
+ characterGroupWhitespace: 1,
327
+ characterReferenceDecimalSizeMax: 7,
328
+ characterReferenceHexadecimalSizeMax: 6,
329
+ characterReferenceNamedSizeMax: 31,
330
+ codeFencedSequenceSizeMin: 3,
331
+ commentPaddingSizeMin: 2,
332
+ contentTypeComment: 'comment',
333
+ contentTypeContent: 'content',
334
+ contentTypeDocument: 'document',
335
+ contentTypeFlow: 'flow',
336
+ contentTypeSource: 'source',
337
+ contentTypeString: 'string',
338
+ contentTypeText: 'text',
339
+ contentTypeType: 'type',
340
+ hardBreakPrefixSizeMin: 2,
341
+ htmlBasic: 6,
342
+ htmlCdata: 5,
343
+ htmlComment: 2,
344
+ htmlComplete: 7,
345
+ htmlDeclaration: 4,
346
+ htmlInstruction: 3,
347
+ htmlRaw: 1,
348
+ htmlRawSizeMax: 8,
349
+ linkReferenceSizeMax: 999,
350
+ linkResourceDestinationBalanceMax: 32,
351
+ listItemValueSizeMax: 10,
352
+ numericBaseDecimal: 10,
353
+ numericBaseHexadecimal: 0x10,
354
+ tabSize: 4,
355
+ thematicBreakMarkerCountMin: 3,
356
+ v8MaxSafeChunkSize: 10_000
357
+ };
358
+
359
+ const ct = {
360
+ comment: constants.contentTypeComment,
361
+ content: constants.contentTypeContent,
362
+ document: constants.contentTypeDocument,
363
+ flow: constants.contentTypeFlow,
364
+ source: constants.contentTypeSource,
365
+ string: constants.contentTypeString,
366
+ text: constants.contentTypeText,
367
+ type: constants.contentTypeType
368
+ };
369
+
370
+ const ev = {
371
+ enter: 'enter',
372
+ exit: 'exit'
373
+ };
374
+
375
+ const kind = {
376
+ block: 'block',
377
+ docblock: 'docblock',
378
+ line: 'line'
379
+ };
380
+
381
+ const tt = {
382
+ atxHeading: 'atxHeading',
383
+ atxHeadingSequence: 'atxHeadingSequence',
384
+ atxHeadingText: 'atxHeadingText',
385
+ autolink: 'autolink',
386
+ autolinkEmail: 'autolinkEmail',
387
+ autolinkMarker: 'autolinkMarker',
388
+ autolinkProtocol: 'autolinkProtocol',
389
+ blockQuote: 'blockQuote',
390
+ blockQuoteMarker: 'blockQuoteMarker',
391
+ blockQuotePrefix: 'blockQuotePrefix',
392
+ blockQuotePrefixWhitespace: 'blockQuotePrefixWhitespace',
393
+ blockTag: 'blockTag',
394
+ characterEscape: 'characterEscape',
395
+ characterEscapeValue: 'characterEscapeValue',
396
+ characterReference: 'characterReference',
397
+ characterReferenceMarker: 'characterReferenceMarker',
398
+ characterReferenceMarkerHexadecimal: 'characterReferenceMarkerHexadecimal',
399
+ characterReferenceMarkerNumeric: 'characterReferenceMarkerNumeric',
400
+ characterReferenceValue: 'characterReferenceValue',
401
+ chunkComment: 'chunkComment',
402
+ chunkContent: 'chunkContent',
403
+ chunkDocument: 'chunkDocument',
404
+ chunkFlow: 'chunkFlow',
405
+ chunkMarkdown: 'chunkMarkdown',
406
+ chunkString: 'chunkString',
407
+ chunkText: 'chunkText',
408
+ chunkType: 'chunkType',
409
+ codeFenced: 'codeFenced',
410
+ codeFencedFence: 'codeFencedFence',
411
+ codeFencedFenceInfo: 'codeFencedFenceInfo',
412
+ codeFencedFenceMeta: 'codeFencedFenceMeta',
413
+ codeFencedFenceSequence: 'codeFencedFenceSequence',
414
+ codeFlowValue: 'codeFlowValue',
415
+ codeIndented: 'codeIndented',
416
+ codeText: 'codeText',
417
+ codeTextData: 'codeTextData',
418
+ codeTextPadding: 'codeTextPadding',
419
+ codeTextSequence: 'codeTextSequence',
420
+ comment: 'comment',
421
+ commentCloser: 'commentCloser',
422
+ commentLineMarker: 'commentLineMarker',
423
+ commentLinePrefix: 'commentLinePrefix',
424
+ commentOpener: 'commentOpener',
425
+ commentPadding: 'commentPadding',
426
+ content: 'content',
427
+ data: 'data',
428
+ definition: 'definition',
429
+ definitionDestination: 'definitionDestination',
430
+ definitionDestinationLiteral: 'definitionDestinationLiteral',
431
+ definitionDestinationLiteralMarker: 'definitionDestinationLiteralMarker',
432
+ definitionDestinationRaw: 'definitionDestinationRaw',
433
+ definitionDestinationString: 'definitionDestinationString',
434
+ definitionLabel: 'definitionLabel',
435
+ definitionLabelMarker: 'definitionLabelMarker',
436
+ definitionLabelString: 'definitionLabelString',
437
+ definitionMarker: 'definitionMarker',
438
+ definitionTitle: 'definitionTitle',
439
+ definitionTitleMarker: 'definitionTitleMarker',
440
+ definitionTitleString: 'definitionTitleString',
441
+ emphasis: 'emphasis',
442
+ emphasisSequence: 'emphasisSequence',
443
+ emphasisText: 'emphasisText',
444
+ eoc: 'eoc',
445
+ escapeMarker: 'escapeMarker',
446
+ hardBreakEscape: 'hardBreakEscape',
447
+ hardBreakTrailing: 'hardBreakTrailing',
448
+ htmlFlow: 'htmlFlow',
449
+ htmlFlowData: 'htmlFlowData',
450
+ htmlText: 'htmlText',
451
+ htmlTextData: 'htmlTextData',
452
+ identifier: 'identifier',
453
+ image: 'image',
454
+ inlineTag: 'inlineTag',
455
+ inlineTagMarker: 'inlineTagMarker',
456
+ inlineTagText: 'inlineTagText',
457
+ label: 'label',
458
+ labelEnd: 'labelEnd',
459
+ labelImage: 'labelImage',
460
+ labelImageMarker: 'labelImageMarker',
461
+ labelLink: 'labelLink',
462
+ labelMarker: 'labelMarker',
463
+ labelText: 'labelText',
464
+ lineEnding: 'lineEnding',
465
+ lineEndingBlank: 'lineEndingBlank',
466
+ linePrefix: 'linePrefix',
467
+ lineSuffix: 'lineSuffix',
468
+ link: 'link',
469
+ listItemIndent: 'listItemIndent',
470
+ listItemMarker: 'listItemMarker',
471
+ listItemPrefix: 'listItemPrefix',
472
+ listItemPrefixWhitespace: 'listItemPrefixWhitespace',
473
+ listItemValue: 'listItemValue',
474
+ listOrdered: 'listOrdered',
475
+ listUnordered: 'listUnordered',
476
+ namepath: 'namepath',
477
+ namepathConnector: 'namepathConnector',
478
+ namepathIdentifier: 'namepathIdentifier',
479
+ namepathMarker: 'namepathMarker',
480
+ paragraph: 'paragraph',
481
+ reference: 'reference',
482
+ referenceMarker: 'referenceMarker',
483
+ referenceString: 'referenceString',
484
+ resource: 'resource',
485
+ resourceDestination: 'resourceDestination',
486
+ resourceDestinationLiteral: 'resourceDestinationLiteral',
487
+ resourceDestinationLiteralMarker: 'resourceDestinationLiteralMarker',
488
+ resourceDestinationRaw: 'resourceDestinationRaw',
489
+ resourceDestinationString: 'resourceDestinationString',
490
+ resourceMarker: 'resourceMarker',
491
+ resourceTitle: 'resourceTitle',
492
+ resourceTitleMarker: 'resourceTitleMarker',
493
+ resourceTitleString: 'resourceTitleString',
494
+ setextHeading: 'setextHeading',
495
+ setextHeadingLine: 'setextHeadingLine',
496
+ setextHeadingLineSequence: 'setextHeadingLineSequence',
497
+ setextHeadingText: 'setextHeadingText',
498
+ strong: 'strong',
499
+ strongSequence: 'strongSequence',
500
+ strongText: 'strongText',
501
+ summary: 'summary',
502
+ summaryMarker: 'summaryMarker',
503
+ tagName: 'tagName',
504
+ tagNameIdentifier: 'tagNameIdentifier',
505
+ tagNameMarker: 'tagNameMarker',
506
+ thematicBreak: 'thematicBreak',
507
+ thematicBreakSequence: 'thematicBreakSequence',
508
+ typeExpression: 'typeExpression',
509
+ typeExpressionValue: 'typeExpressionValue',
510
+ typeMetadata: 'typeMetadata',
511
+ typeMetadataMarker: 'typeMetadataMarker',
512
+ whitespace: 'whitespace'
513
+ };
514
+
515
+ export { chars, codes, constants, ct, ev, kind, tt };
package/package.json ADDED
@@ -0,0 +1,57 @@
1
+ {
2
+ "name": "@flex-development/docmark-util-symbol",
3
+ "description": "",
4
+ "version": "1.0.0-dev.1",
5
+ "keywords": [
6
+ "docmark",
7
+ "symbol",
8
+ "typescript",
9
+ "util",
10
+ "utility"
11
+ ],
12
+ "license": "BSD-3-Clause",
13
+ "homepage": "https://github.com/flex-development/docmark-util-types/tree/main/packages/flex-development/docmark-util-symbol",
14
+ "repository": {
15
+ "directory": "packages/docmark-util-symbol",
16
+ "type": "git",
17
+ "url": "git+https://github.com/flex-development/docmark.git"
18
+ },
19
+ "bugs": "https://github.com/flex-development/docmark/issues",
20
+ "author": {
21
+ "name": "Lexus Drumgold",
22
+ "url": "https://github.com/unicornware"
23
+ },
24
+ "publishConfig": {
25
+ "access": "public",
26
+ "diff-dst-prefix": "docmark-util-symbol",
27
+ "diff-src-prefix": "docmark-util-symbol",
28
+ "directory": "./",
29
+ "executableFiles": [],
30
+ "node-options": null,
31
+ "pack-destination": ".",
32
+ "parseable": true,
33
+ "prefer-dedupe": true,
34
+ "provenance": true,
35
+ "tag-version-prefix": "docmark-util-symbol"
36
+ },
37
+ "type": "module",
38
+ "files": [
39
+ "LICENSE.md",
40
+ "README.md",
41
+ "dist"
42
+ ],
43
+ "exports": {
44
+ ".": {
45
+ "docmark": "./src/index.mts",
46
+ "default": "./dist/index.mjs"
47
+ },
48
+ "./package.json": "./package.json"
49
+ },
50
+ "module": "./dist/index.mjs",
51
+ "types": "./dist/index.d.mts",
52
+ "devDependencies": {
53
+ "micromark-util-symbol": "2.0.1"
54
+ },
55
+ "sideEffects": false,
56
+ "build": "e5677e85725ab3bf4f4645e3ed427703d91bf9a4"
57
+ }