@gmb/bitmark-parser-generator 5.31.1 → 5.33.0
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/dist/browser/bitmark-parser-generator.min.js +1 -1
- package/dist/browser/bundle-report.html +2 -2
- package/dist/browser/cjs/index.cjs +1119 -681
- package/dist/browser/cjs/index.cjs.map +1 -1
- package/dist/browser/cjs/index.d.cts +25 -0
- package/dist/browser/esm/index.d.ts +25 -0
- package/dist/browser/esm/index.js +1119 -681
- package/dist/browser/esm/index.js.map +1 -1
- package/dist/cli/main.js +1113 -674
- package/dist/cli/main.js.map +1 -1
- package/dist/index.cjs +1121 -681
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +1121 -681
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -440,6 +440,8 @@ declare const BitType: {
|
|
|
440
440
|
readonly pageSectionFolder: "page-section-folder";
|
|
441
441
|
readonly pageShopInShop: "page-shop-in-shop";
|
|
442
442
|
readonly pageSpecial: "page-special";
|
|
443
|
+
readonly pageEnd: "page-end";
|
|
444
|
+
readonly pageStart: "page-start";
|
|
443
445
|
readonly pageSubpage: "page-subpage";
|
|
444
446
|
readonly pageSubscribe: "page-subscribe";
|
|
445
447
|
readonly parameters: "parameters";
|
|
@@ -1170,6 +1172,7 @@ declare const TextMarkType: {
|
|
|
1170
1172
|
readonly del: "del";
|
|
1171
1173
|
readonly underline: "underline";
|
|
1172
1174
|
readonly doubleUnderline: "doubleUnderline";
|
|
1175
|
+
readonly smallcaps: "smallcaps";
|
|
1173
1176
|
readonly circle: "circle";
|
|
1174
1177
|
readonly languageEmRed: "languageEmRed";
|
|
1175
1178
|
readonly languageEmOrange: "languageEmOrange";
|
|
@@ -1201,6 +1204,7 @@ declare const TextMarkType: {
|
|
|
1201
1204
|
readonly timer: "timer";
|
|
1202
1205
|
readonly duration: "duration";
|
|
1203
1206
|
readonly color: "color";
|
|
1207
|
+
readonly textStyle: "textStyle";
|
|
1204
1208
|
readonly colorPicker: "colorPicker";
|
|
1205
1209
|
readonly comment: "comment";
|
|
1206
1210
|
};
|
|
@@ -3792,6 +3796,27 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3792
3796
|
protected writeLatex(node: LatexTextNode): void;
|
|
3793
3797
|
protected writeMarkTextWrapper(s: string): void;
|
|
3794
3798
|
protected writeInlineMark(mark: TextMark): void;
|
|
3799
|
+
/**
|
|
3800
|
+
* Resolve the marks of a text node into the marks that will actually be written.
|
|
3801
|
+
*
|
|
3802
|
+
* - Merges a legacy standalone 'duration' mark into its sibling 'timer' mark.
|
|
3803
|
+
* - Drops marks the current grammar cannot express (standalone 'duration', 'timer'
|
|
3804
|
+
* without a duration).
|
|
3805
|
+
* - Moves a 'textStyle'/'color' mark before a preceding bare 'highlight'/'userHighlight'
|
|
3806
|
+
* mark when its color is a valid highlight color; written in the original order the
|
|
3807
|
+
* output would re-parse as a highlight-with-color compound mark and change meaning.
|
|
3808
|
+
*/
|
|
3809
|
+
protected getWritableMarks(nodeMarks: TextMark[]): TextMark[];
|
|
3810
|
+
/**
|
|
3811
|
+
* True if the mark is written using its standard form (e.g. **bold**, !!highlight!!)
|
|
3812
|
+
* when it is the only mark. A highlight mark with a color attribute is excluded - it
|
|
3813
|
+
* can only be expressed using the inline chain form (==text==|highlight|color:x|).
|
|
3814
|
+
*/
|
|
3815
|
+
protected isStandardMark(mark: TextMark): boolean;
|
|
3816
|
+
/**
|
|
3817
|
+
* True if the mark is written using the inline chain form (==text==|mark|).
|
|
3818
|
+
*/
|
|
3819
|
+
protected isInlineMark(mark: TextMark): boolean;
|
|
3795
3820
|
protected writeCommentMark(mark: CommentMark): void;
|
|
3796
3821
|
protected writeLinkMark(mark: LinkMark): void;
|
|
3797
3822
|
protected writeRefMark(mark: RefMark): void;
|
|
@@ -440,6 +440,8 @@ declare const BitType: {
|
|
|
440
440
|
readonly pageSectionFolder: "page-section-folder";
|
|
441
441
|
readonly pageShopInShop: "page-shop-in-shop";
|
|
442
442
|
readonly pageSpecial: "page-special";
|
|
443
|
+
readonly pageEnd: "page-end";
|
|
444
|
+
readonly pageStart: "page-start";
|
|
443
445
|
readonly pageSubpage: "page-subpage";
|
|
444
446
|
readonly pageSubscribe: "page-subscribe";
|
|
445
447
|
readonly parameters: "parameters";
|
|
@@ -1170,6 +1172,7 @@ declare const TextMarkType: {
|
|
|
1170
1172
|
readonly del: "del";
|
|
1171
1173
|
readonly underline: "underline";
|
|
1172
1174
|
readonly doubleUnderline: "doubleUnderline";
|
|
1175
|
+
readonly smallcaps: "smallcaps";
|
|
1173
1176
|
readonly circle: "circle";
|
|
1174
1177
|
readonly languageEmRed: "languageEmRed";
|
|
1175
1178
|
readonly languageEmOrange: "languageEmOrange";
|
|
@@ -1201,6 +1204,7 @@ declare const TextMarkType: {
|
|
|
1201
1204
|
readonly timer: "timer";
|
|
1202
1205
|
readonly duration: "duration";
|
|
1203
1206
|
readonly color: "color";
|
|
1207
|
+
readonly textStyle: "textStyle";
|
|
1204
1208
|
readonly colorPicker: "colorPicker";
|
|
1205
1209
|
readonly comment: "comment";
|
|
1206
1210
|
};
|
|
@@ -3792,6 +3796,27 @@ declare class TextGenerator extends AstWalkerGenerator<TextAst, BreakscapedStrin
|
|
|
3792
3796
|
protected writeLatex(node: LatexTextNode): void;
|
|
3793
3797
|
protected writeMarkTextWrapper(s: string): void;
|
|
3794
3798
|
protected writeInlineMark(mark: TextMark): void;
|
|
3799
|
+
/**
|
|
3800
|
+
* Resolve the marks of a text node into the marks that will actually be written.
|
|
3801
|
+
*
|
|
3802
|
+
* - Merges a legacy standalone 'duration' mark into its sibling 'timer' mark.
|
|
3803
|
+
* - Drops marks the current grammar cannot express (standalone 'duration', 'timer'
|
|
3804
|
+
* without a duration).
|
|
3805
|
+
* - Moves a 'textStyle'/'color' mark before a preceding bare 'highlight'/'userHighlight'
|
|
3806
|
+
* mark when its color is a valid highlight color; written in the original order the
|
|
3807
|
+
* output would re-parse as a highlight-with-color compound mark and change meaning.
|
|
3808
|
+
*/
|
|
3809
|
+
protected getWritableMarks(nodeMarks: TextMark[]): TextMark[];
|
|
3810
|
+
/**
|
|
3811
|
+
* True if the mark is written using its standard form (e.g. **bold**, !!highlight!!)
|
|
3812
|
+
* when it is the only mark. A highlight mark with a color attribute is excluded - it
|
|
3813
|
+
* can only be expressed using the inline chain form (==text==|highlight|color:x|).
|
|
3814
|
+
*/
|
|
3815
|
+
protected isStandardMark(mark: TextMark): boolean;
|
|
3816
|
+
/**
|
|
3817
|
+
* True if the mark is written using the inline chain form (==text==|mark|).
|
|
3818
|
+
*/
|
|
3819
|
+
protected isInlineMark(mark: TextMark): boolean;
|
|
3795
3820
|
protected writeCommentMark(mark: CommentMark): void;
|
|
3796
3821
|
protected writeLinkMark(mark: LinkMark): void;
|
|
3797
3822
|
protected writeRefMark(mark: RefMark): void;
|