@wenyan-md/core 1.0.7 → 1.0.8
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/types/wrapper.d.ts +1 -1
- package/dist/wrapper.js +7 -7
- package/package.json +1 -1
package/dist/types/wrapper.d.ts
CHANGED
|
@@ -4,4 +4,4 @@ export type GzhContent = {
|
|
|
4
4
|
content: string;
|
|
5
5
|
description: string;
|
|
6
6
|
};
|
|
7
|
-
export declare function getGzhContent(content: string, themeId: string, hlThemeId: string, isMacStyle: boolean): Promise<GzhContent>;
|
|
7
|
+
export declare function getGzhContent(content: string, themeId: string, hlThemeId: string, isMacStyle: boolean, isAddFootnote: boolean): Promise<GzhContent>;
|
package/dist/wrapper.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { JSDOM as
|
|
2
|
-
import { configureMarked as
|
|
3
|
-
async function
|
|
4
|
-
|
|
5
|
-
const t =
|
|
1
|
+
import { JSDOM as m } from "jsdom";
|
|
2
|
+
import { configureMarked as s, handleFrontMatter as w, renderMarkdown as l, getContentForGzhBuiltinTheme as u } from "./core.js";
|
|
3
|
+
async function g(n, e, o, r, c) {
|
|
4
|
+
s();
|
|
5
|
+
const t = w(n), d = await l(t.body), i = new m(`<body><section id="wenyan">${d}</section></body>`).window.document.getElementById("wenyan"), a = await u(i, e, o, r, c);
|
|
6
6
|
return {
|
|
7
7
|
title: t.title,
|
|
8
8
|
cover: t.cover,
|
|
9
|
-
content:
|
|
9
|
+
content: a,
|
|
10
10
|
description: t.description
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
g as getGzhContent
|
|
15
15
|
};
|
package/package.json
CHANGED