@dr-ishaan/remake-blocks 1.0.0 → 1.2.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.
@@ -0,0 +1,28 @@
1
+ /**
2
+ * remake-blocks
3
+ *
4
+ * A remark plugin that transforms callout directives inside blockquotes
5
+ * into styled callout components, disclosure widgets, and optionally
6
+ * enhances regular blockquotes.
7
+ *
8
+ * 27 first-class callout types + disclosure widgets ([!])
9
+ * + accordion grouping + tree view nesting
10
+ * — each directive maps 1:1 to its own unique visual identity.
11
+ *
12
+ * @security By default, raw HTML in markdown source is HTML-escaped before
13
+ * being placed into callout bodies (safe-by-default). Set
14
+ * `allowDangerousHtml: true` in plugin options to disable escaping —
15
+ * only do this if you fully trust your markdown source.
16
+ */
17
+ import type { Root } from "mdast";
18
+ import type { Plugin } from "unified";
19
+ import type { RemakeBlocksOptions, CalloutConfig } from "./types.js";
20
+ declare const BUILTIN_CALLOUTS: CalloutConfig[];
21
+ declare function escapeAttribute(str: string): string;
22
+ declare function sanitizeColor(value: string, fallback: string): string;
23
+ declare function escapeHtml(str: string): string;
24
+ export declare const remarkRemakeBlocks: Plugin<[RemakeBlocksOptions?], Root>;
25
+ export declare const remarkCalloutBlocks: Plugin<[(RemakeBlocksOptions | undefined)?], Root>;
26
+ export { escapeHtml, escapeAttribute, sanitizeColor };
27
+ export { BUILTIN_CALLOUTS };
28
+ //# sourceMappingURL=remark-remake-blocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remark-remake-blocks.d.ts","sourceRoot":"","sources":["../src/remark-remake-blocks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAqC,MAAM,OAAO,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EAId,MAAM,YAAY,CAAC;AAMpB,QAAA,MAAM,gBAAgB,EAAE,aAAa,EAsKpC,CAAC;AAoEF,iBAAS,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE5C;AAUD,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAW9D;AA4KD,iBAAS,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAOvC;AAubD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,CAAC,mBAAmB,CAAC,CAAC,EAAE,IAAI,CAwFnE,CAAC;AAiFF,eAAO,MAAM,mBAAmB,oDAAqB,CAAC;AAItD,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC;AAEtD,OAAO,EAAE,gBAAgB,EAAE,CAAC"}