Skip to content

Commit bce0b53

Browse files
committed
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.
1 parent 34cfa91 commit bce0b53

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/node/markdown/markdown.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ export interface MarkdownOptions extends Options {
195195
* @default true
196196
* @see https://github.com/tats-u/markdown-cjk-friendly
197197
*/
198+
cjkFriendlyEmphasis?: boolean
199+
/**
200+
* @see cjkFriendlyEmphasis
201+
* @deprecated use `cjkFriendly` instead
202+
*/
198203
cjkFriendly?: boolean
199204
}
200205

@@ -360,7 +365,7 @@ export async function createMarkdownRenderer(
360365
}
361366
}
362367

363-
if (options.cjkFriendly !== false) {
368+
if (options.cjkFriendlyEmphasis !== false && options.cjkFriendly !== false) {
364369
md.use(mditCjkFriendly)
365370
}
366371

0 commit comments

Comments
 (0)