mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-31 00:34:05 -06:00
将汉字的斜体改成斜体以增进体验 (#10)
* 目标:中文斜体改楷体 * Update chinese-italic.ts * Update index.ts * Update chinese-italic.ts
This commit is contained in:
parent
f4364025db
commit
e286c3386f
@ -77,6 +77,7 @@ const config: QuartzConfig = {
|
|||||||
// *caption text*
|
// *caption text*
|
||||||
// ```
|
// ```
|
||||||
Plugin.FigureCaptions(),
|
Plugin.FigureCaptions(),
|
||||||
|
Plugin.ChineseItalic(),
|
||||||
// Adds image lightbox support
|
// Adds image lightbox support
|
||||||
//Plugin.Lightbox(),
|
//Plugin.Lightbox(),
|
||||||
],
|
],
|
||||||
|
|||||||
16
quartz/plugins/transformers/chinese-italic.ts
Normal file
16
quartz/plugins/transformers/chinese-italic.ts
Normal 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" }],
|
||||||
|
}
|
||||||
|
},
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -13,3 +13,4 @@ export { HardLineBreaks } from "./linebreaks"
|
|||||||
export { RoamFlavoredMarkdown } from "./roam"
|
export { RoamFlavoredMarkdown } from "./roam"
|
||||||
export { FigureCaptions } from "./figcaptions"
|
export { FigureCaptions } from "./figcaptions"
|
||||||
export { Lightbox } from "./lightbox"
|
export { Lightbox } from "./lightbox"
|
||||||
|
export { ChineseItalic } from "./chinese-italic"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user