fix: rename `markdown.cjkFriendly` to `markdown.cjkFriendlyEmphasis`

closes #4952

BREAKING CHANGE: Rename `cjkFriendly` to `cjkFriendlyEmphasis` in your vitepress config. **Most people should be unaffected** unless they want to disable the CJK emphasis behavior added v2.0.0-alpha.12.
main
Divyansh Singh 12 hours ago
parent 34cfa91b6f
commit bce0b53659

@ -195,6 +195,11 @@ export interface MarkdownOptions extends Options {
* @default true
* @see https://github.com/tats-u/markdown-cjk-friendly
*/
cjkFriendlyEmphasis?: boolean
/**
* @see cjkFriendlyEmphasis
* @deprecated use `cjkFriendly` instead
*/
cjkFriendly?: boolean
}
@ -360,7 +365,7 @@ export async function createMarkdownRenderer(
}
}
if (options.cjkFriendly !== false) {
if (options.cjkFriendlyEmphasis !== false && options.cjkFriendly !== false) {
md.use(mditCjkFriendly)
}

Loading…
Cancel
Save