@changerawr/markdown 1.0.4 → 1.1.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/LICENSE +21 -0
- package/README.md +129 -11
- package/dist/index.d.mts +63 -47
- package/dist/index.d.ts +63 -47
- package/dist/index.js +677 -448
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +661 -449
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.d.mts +2 -37
- package/dist/react/index.d.ts +2 -37
- package/dist/react/index.js +604 -432
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +604 -433
- package/dist/react/index.mjs.map +1 -1
- package/dist/standalone.browser.js +2722 -0
- package/dist/standalone.d.mts +2 -37
- package/dist/standalone.d.ts +2 -37
- package/dist/standalone.js +604 -431
- package/dist/standalone.js.map +1 -1
- package/dist/standalone.mjs +604 -431
- package/dist/standalone.mjs.map +1 -1
- package/dist/tailwind/index.d.mts +6 -2
- package/dist/tailwind/index.d.ts +6 -2
- package/dist/tailwind/index.js +204 -95
- package/dist/tailwind/index.js.map +1 -1
- package/dist/tailwind/index.mjs +204 -95
- package/dist/tailwind/index.mjs.map +1 -1
- package/package.json +4 -2
package/dist/standalone.d.mts
CHANGED
|
@@ -62,53 +62,18 @@ declare class ChangerawrMarkdown {
|
|
|
62
62
|
private renderer;
|
|
63
63
|
private extensions;
|
|
64
64
|
constructor(config?: EngineConfig);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
*/
|
|
65
|
+
private registerFeatureExtensions;
|
|
66
|
+
private registerCoreExtensions;
|
|
68
67
|
registerExtension(extension: Extension): ExtensionRegistration;
|
|
69
|
-
/**
|
|
70
|
-
* Unregister an extension
|
|
71
|
-
*/
|
|
72
68
|
unregisterExtension(name: string): boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Parse markdown content into tokens
|
|
75
|
-
*/
|
|
76
69
|
parse(markdown: string): MarkdownToken[];
|
|
77
|
-
/**
|
|
78
|
-
* Render tokens to HTML
|
|
79
|
-
*/
|
|
80
70
|
render(tokens: MarkdownToken[]): string;
|
|
81
|
-
/**
|
|
82
|
-
* Parse and render markdown to HTML in one step
|
|
83
|
-
*/
|
|
84
71
|
toHtml(markdown: string): string;
|
|
85
|
-
/**
|
|
86
|
-
* Get list of registered extensions
|
|
87
|
-
*/
|
|
88
72
|
getExtensions(): string[];
|
|
89
|
-
/**
|
|
90
|
-
* Check if extension is registered
|
|
91
|
-
*/
|
|
92
73
|
hasExtension(name: string): boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Get parser warnings
|
|
95
|
-
*/
|
|
96
74
|
getWarnings(): string[];
|
|
97
|
-
/**
|
|
98
|
-
* Get debug information from last render
|
|
99
|
-
*/
|
|
100
75
|
getDebugInfo(): DebugInfo | null;
|
|
101
|
-
/**
|
|
102
|
-
* Get performance metrics for the last operation
|
|
103
|
-
*/
|
|
104
76
|
getPerformanceMetrics(): PerformanceMetrics | null;
|
|
105
|
-
/**
|
|
106
|
-
* Register built-in extensions
|
|
107
|
-
*/
|
|
108
|
-
private registerBuiltInExtensions;
|
|
109
|
-
/**
|
|
110
|
-
* Rebuild parser and renderer with current extensions
|
|
111
|
-
*/
|
|
112
77
|
private rebuildParserAndRenderer;
|
|
113
78
|
}
|
|
114
79
|
|
package/dist/standalone.d.ts
CHANGED
|
@@ -62,53 +62,18 @@ declare class ChangerawrMarkdown {
|
|
|
62
62
|
private renderer;
|
|
63
63
|
private extensions;
|
|
64
64
|
constructor(config?: EngineConfig);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
*/
|
|
65
|
+
private registerFeatureExtensions;
|
|
66
|
+
private registerCoreExtensions;
|
|
68
67
|
registerExtension(extension: Extension): ExtensionRegistration;
|
|
69
|
-
/**
|
|
70
|
-
* Unregister an extension
|
|
71
|
-
*/
|
|
72
68
|
unregisterExtension(name: string): boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Parse markdown content into tokens
|
|
75
|
-
*/
|
|
76
69
|
parse(markdown: string): MarkdownToken[];
|
|
77
|
-
/**
|
|
78
|
-
* Render tokens to HTML
|
|
79
|
-
*/
|
|
80
70
|
render(tokens: MarkdownToken[]): string;
|
|
81
|
-
/**
|
|
82
|
-
* Parse and render markdown to HTML in one step
|
|
83
|
-
*/
|
|
84
71
|
toHtml(markdown: string): string;
|
|
85
|
-
/**
|
|
86
|
-
* Get list of registered extensions
|
|
87
|
-
*/
|
|
88
72
|
getExtensions(): string[];
|
|
89
|
-
/**
|
|
90
|
-
* Check if extension is registered
|
|
91
|
-
*/
|
|
92
73
|
hasExtension(name: string): boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Get parser warnings
|
|
95
|
-
*/
|
|
96
74
|
getWarnings(): string[];
|
|
97
|
-
/**
|
|
98
|
-
* Get debug information from last render
|
|
99
|
-
*/
|
|
100
75
|
getDebugInfo(): DebugInfo | null;
|
|
101
|
-
/**
|
|
102
|
-
* Get performance metrics for the last operation
|
|
103
|
-
*/
|
|
104
76
|
getPerformanceMetrics(): PerformanceMetrics | null;
|
|
105
|
-
/**
|
|
106
|
-
* Register built-in extensions
|
|
107
|
-
*/
|
|
108
|
-
private registerBuiltInExtensions;
|
|
109
|
-
/**
|
|
110
|
-
* Rebuild parser and renderer with current extensions
|
|
111
|
-
*/
|
|
112
77
|
private rebuildParserAndRenderer;
|
|
113
78
|
}
|
|
114
79
|
|