将汉字的斜体改成斜体以增进体验 (#10)

* 目标:中文斜体改楷体

* Update chinese-italic.ts

* Update index.ts

* Update chinese-italic.ts
This commit is contained in:
ArenaDruid 2025-02-04 18:09:18 +08:00 committed by GitHub
parent f4364025db
commit e286c3386f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 18 additions and 0 deletions

View File

@ -77,6 +77,7 @@ const config: QuartzConfig = {
// *caption text*
// ```
Plugin.FigureCaptions(),
Plugin.ChineseItalic(),
// Adds image lightbox support
//Plugin.Lightbox(),
],

View File

@ -0,0 +1,16 @@
import { QuartzTransformerPlugin } from "../types"
interface Options {
// 可扩展选项(如自定义字体名)
}
export const ChineseItalic: QuartzTransformerPlugin<Options> = (opts) => {
return {
name: "ChineseItalic",
externalResources() {
return {
css: [{ content: "attachments/chinese-italic-kaiti.css" }],
}
},
}
}

View File

@ -13,3 +13,4 @@ export { HardLineBreaks } from "./linebreaks"
export { RoamFlavoredMarkdown } from "./roam"
export { FigureCaptions } from "./figcaptions"
export { Lightbox } from "./lightbox"
export { ChineseItalic } from "./chinese-italic"