markdown-paper 2.2.4 → 2.2.5
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/package.json +1 -1
- package/theme/aps/aps.ts +6 -4
package/package.json
CHANGED
package/theme/aps/aps.ts
CHANGED
|
@@ -121,7 +121,11 @@ export class APS implements MarkdownPaperTheme {
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
export const baseAPS:
|
|
124
|
+
export const baseAPS: {
|
|
125
|
+
css: string
|
|
126
|
+
preParseMarkdown: (md: string) => Promise<string>
|
|
127
|
+
preParseHTML: (html: string) => Promise<string>
|
|
128
|
+
} = {
|
|
125
129
|
css: `
|
|
126
130
|
* {
|
|
127
131
|
font-family: 'Times', 'Times New Roman', '宋体', 'SimSun', '华文宋体', 'STSong'; /* 所有数字和英文字体都用 Times New Roman */
|
|
@@ -278,7 +282,5 @@ export const baseAPS: MarkdownPaperTheme = {
|
|
|
278
282
|
html = html.replace(/<p><img (.*?)><\/p>/g, '<img $1>')
|
|
279
283
|
// 返回处理后的字符串
|
|
280
284
|
return html
|
|
281
|
-
}
|
|
282
|
-
script: () => {},
|
|
283
|
-
pdfOptions: {}
|
|
285
|
+
}
|
|
284
286
|
}
|