@hyperbook/markdown 0.13.0 → 0.13.2
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.js +8 -11
- package/dist/index.js.map +2 -2
- package/dist/process.d.ts +1 -0
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -71945,11 +71945,8 @@ var remarkDirectivePagelist_default = (ctx) => () => {
|
|
|
71945
71945
|
);
|
|
71946
71946
|
const template = import_handlebars.default.compile(snippetFile);
|
|
71947
71947
|
const content5 = template({ pages: filteredPages });
|
|
71948
|
-
|
|
71949
|
-
|
|
71950
|
-
allowDangerousHtml: ctx.config.allowDangerousHtml || false
|
|
71951
|
-
})
|
|
71952
|
-
];
|
|
71948
|
+
const contentTree = remark(ctx).parse(content5);
|
|
71949
|
+
node2.children = contentTree.children;
|
|
71953
71950
|
} else if (format2 === "ul") {
|
|
71954
71951
|
data.hChildren = [
|
|
71955
71952
|
{
|
|
@@ -72196,7 +72193,6 @@ var remark = (ctx) => {
|
|
|
72196
72193
|
remarkHeadings_default(ctx),
|
|
72197
72194
|
remarkImage_default(ctx),
|
|
72198
72195
|
remarkGfm,
|
|
72199
|
-
remarkCode_default(ctx),
|
|
72200
72196
|
remarkDirectiveTerm_default(ctx),
|
|
72201
72197
|
remarkDirectiveEmbed_default(ctx),
|
|
72202
72198
|
remarkDirectiveArchive_default(ctx),
|
|
@@ -72219,6 +72215,7 @@ var remark = (ctx) => {
|
|
|
72219
72215
|
remarkDirectiveExcalidraw_default(ctx),
|
|
72220
72216
|
remarkDirectiveStruktog_default(ctx),
|
|
72221
72217
|
remarkCollectHeadings_default(ctx),
|
|
72218
|
+
remarkCode_default(ctx),
|
|
72222
72219
|
remarkMath,
|
|
72223
72220
|
remarkGemoji,
|
|
72224
72221
|
remarkUnwrapImages,
|
|
@@ -72249,13 +72246,13 @@ var remark = (ctx) => {
|
|
|
72249
72246
|
];
|
|
72250
72247
|
return unified().use(remarkParse).use(remarkPlugins).use(remarkRehype, {
|
|
72251
72248
|
allowDangerousHtml: ctx.config.allowDangerousHtml || false
|
|
72252
|
-
}).use(rehypePlugins)
|
|
72253
|
-
allowDangerousCharacters: true,
|
|
72254
|
-
allowDangerousHtml: ctx.config.allowDangerousHtml || false
|
|
72255
|
-
});
|
|
72249
|
+
}).use(rehypePlugins);
|
|
72256
72250
|
};
|
|
72257
72251
|
var process2 = (md, ctx) => {
|
|
72258
|
-
return remark(ctx).
|
|
72252
|
+
return remark(ctx).use(rehypeShell_default(ctx)).use(rehypeHtmlStructure_default(ctx)).use(rehypeStringify, {
|
|
72253
|
+
allowDangerousCharacters: true,
|
|
72254
|
+
allowDangerousHtml: ctx.config.allowDangerousHtml || false
|
|
72255
|
+
}).process(md);
|
|
72259
72256
|
};
|
|
72260
72257
|
export {
|
|
72261
72258
|
process2 as process
|