@powerduck/md-editor 0.11.4 → 0.11.6
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/Renderer.d.ts +7 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +56 -55
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/Renderer.d.ts
CHANGED
|
@@ -13,6 +13,13 @@ export interface RendererOptions {
|
|
|
13
13
|
html?: boolean;
|
|
14
14
|
/** Convert soft line breaks to <br>. Default: false. */
|
|
15
15
|
breaks?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Theme for standalone rendering. When set, the rendered HTML is wrapped
|
|
18
|
+
* in a container with `data-theme` so that code blocks, tables, and other
|
|
19
|
+
* elements inherit the correct dark/light token variables. Use this when
|
|
20
|
+
* rendering markdown outside of a `.md-editor-root` container.
|
|
21
|
+
*/
|
|
22
|
+
theme?: "light" | "dark";
|
|
16
23
|
}
|
|
17
24
|
export declare class Renderer {
|
|
18
25
|
readonly md: MarkdownIt;
|