@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/react/index.d.mts
CHANGED
|
@@ -177,53 +177,18 @@ declare class ChangerawrMarkdown {
|
|
|
177
177
|
private renderer;
|
|
178
178
|
private extensions;
|
|
179
179
|
constructor(config?: EngineConfig);
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
*/
|
|
180
|
+
private registerFeatureExtensions;
|
|
181
|
+
private registerCoreExtensions;
|
|
183
182
|
registerExtension(extension: Extension): ExtensionRegistration;
|
|
184
|
-
/**
|
|
185
|
-
* Unregister an extension
|
|
186
|
-
*/
|
|
187
183
|
unregisterExtension(name: string): boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Parse markdown content into tokens
|
|
190
|
-
*/
|
|
191
184
|
parse(markdown: string): MarkdownToken[];
|
|
192
|
-
/**
|
|
193
|
-
* Render tokens to HTML
|
|
194
|
-
*/
|
|
195
185
|
render(tokens: MarkdownToken[]): string;
|
|
196
|
-
/**
|
|
197
|
-
* Parse and render markdown to HTML in one step
|
|
198
|
-
*/
|
|
199
186
|
toHtml(markdown: string): string;
|
|
200
|
-
/**
|
|
201
|
-
* Get list of registered extensions
|
|
202
|
-
*/
|
|
203
187
|
getExtensions(): string[];
|
|
204
|
-
/**
|
|
205
|
-
* Check if extension is registered
|
|
206
|
-
*/
|
|
207
188
|
hasExtension(name: string): boolean;
|
|
208
|
-
/**
|
|
209
|
-
* Get parser warnings
|
|
210
|
-
*/
|
|
211
189
|
getWarnings(): string[];
|
|
212
|
-
/**
|
|
213
|
-
* Get debug information from last render
|
|
214
|
-
*/
|
|
215
190
|
getDebugInfo(): DebugInfo | null;
|
|
216
|
-
/**
|
|
217
|
-
* Get performance metrics for the last operation
|
|
218
|
-
*/
|
|
219
191
|
getPerformanceMetrics(): PerformanceMetrics | null;
|
|
220
|
-
/**
|
|
221
|
-
* Register built-in extensions
|
|
222
|
-
*/
|
|
223
|
-
private registerBuiltInExtensions;
|
|
224
|
-
/**
|
|
225
|
-
* Rebuild parser and renderer with current extensions
|
|
226
|
-
*/
|
|
227
192
|
private rebuildParserAndRenderer;
|
|
228
193
|
}
|
|
229
194
|
|
package/dist/react/index.d.ts
CHANGED
|
@@ -177,53 +177,18 @@ declare class ChangerawrMarkdown {
|
|
|
177
177
|
private renderer;
|
|
178
178
|
private extensions;
|
|
179
179
|
constructor(config?: EngineConfig);
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
*/
|
|
180
|
+
private registerFeatureExtensions;
|
|
181
|
+
private registerCoreExtensions;
|
|
183
182
|
registerExtension(extension: Extension): ExtensionRegistration;
|
|
184
|
-
/**
|
|
185
|
-
* Unregister an extension
|
|
186
|
-
*/
|
|
187
183
|
unregisterExtension(name: string): boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Parse markdown content into tokens
|
|
190
|
-
*/
|
|
191
184
|
parse(markdown: string): MarkdownToken[];
|
|
192
|
-
/**
|
|
193
|
-
* Render tokens to HTML
|
|
194
|
-
*/
|
|
195
185
|
render(tokens: MarkdownToken[]): string;
|
|
196
|
-
/**
|
|
197
|
-
* Parse and render markdown to HTML in one step
|
|
198
|
-
*/
|
|
199
186
|
toHtml(markdown: string): string;
|
|
200
|
-
/**
|
|
201
|
-
* Get list of registered extensions
|
|
202
|
-
*/
|
|
203
187
|
getExtensions(): string[];
|
|
204
|
-
/**
|
|
205
|
-
* Check if extension is registered
|
|
206
|
-
*/
|
|
207
188
|
hasExtension(name: string): boolean;
|
|
208
|
-
/**
|
|
209
|
-
* Get parser warnings
|
|
210
|
-
*/
|
|
211
189
|
getWarnings(): string[];
|
|
212
|
-
/**
|
|
213
|
-
* Get debug information from last render
|
|
214
|
-
*/
|
|
215
190
|
getDebugInfo(): DebugInfo | null;
|
|
216
|
-
/**
|
|
217
|
-
* Get performance metrics for the last operation
|
|
218
|
-
*/
|
|
219
191
|
getPerformanceMetrics(): PerformanceMetrics | null;
|
|
220
|
-
/**
|
|
221
|
-
* Register built-in extensions
|
|
222
|
-
*/
|
|
223
|
-
private registerBuiltInExtensions;
|
|
224
|
-
/**
|
|
225
|
-
* Rebuild parser and renderer with current extensions
|
|
226
|
-
*/
|
|
227
192
|
private rebuildParserAndRenderer;
|
|
228
193
|
}
|
|
229
194
|
|