@hyperbook/markdown 0.13.1 → 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 +7 -10
- 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
|
{
|
|
@@ -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
|