markstream-angular 0.0.1 → 0.0.2-beta.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/dist/index.css +1 -1
- package/dist/index.js +2049 -1915
- package/dist/types/components/CodeBlockNode/CodeBlockNode.component.d.ts +5 -0
- package/dist/types/components/MermaidBlockNode/MermaidBlockNode.component.d.ts +5 -0
- package/dist/types/types/monaco.d.ts +1 -0
- package/dist/types/utils/normalizeKaTeXRenderInput.d.ts +1 -0
- package/package.json +3 -3
|
@@ -22,6 +22,7 @@ export declare class CodeBlockNodeComponent implements AfterViewInit, OnChanges,
|
|
|
22
22
|
private viewReady;
|
|
23
23
|
private destroyed;
|
|
24
24
|
private copyTimer;
|
|
25
|
+
private deferredHeightSyncRaf;
|
|
25
26
|
get t(): (key: string) => string;
|
|
26
27
|
get mergedProps(): {
|
|
27
28
|
[x: string]: any;
|
|
@@ -78,7 +79,11 @@ export declare class CodeBlockNodeComponent implements AfterViewInit, OnChanges,
|
|
|
78
79
|
private applyEditorFontSize;
|
|
79
80
|
private applyEditorHeight;
|
|
80
81
|
private resolveEditorHeight;
|
|
82
|
+
private resolveEditorLineCount;
|
|
83
|
+
private resolveEditorLineHeight;
|
|
81
84
|
private resolveMaxHeight;
|
|
85
|
+
private cancelDeferredHeightSync;
|
|
86
|
+
private scheduleDeferredHeightSync;
|
|
82
87
|
private cleanupEditor;
|
|
83
88
|
private resolveCssSize;
|
|
84
89
|
private copyUsingTextarea;
|
|
@@ -60,8 +60,13 @@ export declare class MermaidBlockNodeComponent implements AfterViewInit, OnChang
|
|
|
60
60
|
private syncSvgHosts;
|
|
61
61
|
private scheduleHostSync;
|
|
62
62
|
private canParseWithFallback;
|
|
63
|
+
private canParseOrPrefix;
|
|
63
64
|
private findPrefixCandidate;
|
|
64
65
|
private applyThemeTo;
|
|
66
|
+
private getMermaidDiagramKind;
|
|
67
|
+
private isGanttTaskLine;
|
|
68
|
+
private getSafeGanttPreviewCandidate;
|
|
65
69
|
private getSafePrefixCandidate;
|
|
70
|
+
private isBrokenMermaidSvg;
|
|
66
71
|
private withTimeout;
|
|
67
72
|
}
|
|
@@ -40,6 +40,7 @@ export interface CodeBlockMonacoOptions {
|
|
|
40
40
|
themes?: CodeBlockMonacoTheme[];
|
|
41
41
|
languages?: CodeBlockMonacoLanguage[];
|
|
42
42
|
renderSideBySide?: boolean;
|
|
43
|
+
useInlineViewWhenSpaceIsLimited?: boolean;
|
|
43
44
|
enableSplitViewResizing?: boolean;
|
|
44
45
|
ignoreTrimWhitespace?: boolean;
|
|
45
46
|
maxComputationTime?: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function normalizeKaTeXRenderInput(content: string): string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markstream-angular",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.1",
|
|
4
|
+
"version": "0.0.2-beta.1",
|
|
5
5
|
"description": "Experimental Angular Markdown renderer for Markstream, built on stream-markdown AST and a stable HTML baseline renderer.",
|
|
6
6
|
"author": "Simon He",
|
|
7
7
|
"license": "MIT",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@terrastruct/d2": ">=0.1.33",
|
|
48
48
|
"katex": ">=0.16.22",
|
|
49
49
|
"mermaid": ">=11",
|
|
50
|
-
"stream-monaco": ">=0.0.
|
|
50
|
+
"stream-monaco": ">=0.0.22"
|
|
51
51
|
},
|
|
52
52
|
"peerDependenciesMeta": {
|
|
53
53
|
"@antv/infographic": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@floating-ui/dom": "^1.7.6",
|
|
71
|
-
"stream-markdown-parser": "0.0.
|
|
71
|
+
"stream-markdown-parser": "0.0.84"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@types/node": "^18.19.130",
|