refactor(markdown)!: remove deprecated `cjkFriendly` option

BREAKING CHANGE: The deprecated `markdown.cjkFriendly` option has been removed. Use `markdown.cjkFriendlyEmphasis` instead.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
pull/5335/head
Divyansh Singh 1 month ago
parent 078786a1b3
commit 27762eac86

@ -223,11 +223,6 @@ export interface MarkdownOptions extends MarkdownItAsyncOptions {
* @see https://github.com/tats-u/markdown-cjk-friendly
*/
cjkFriendlyEmphasis?: boolean
/**
* @see cjkFriendlyEmphasis
* @deprecated use `cjkFriendly` instead
*/
cjkFriendly?: boolean
}
export type MarkdownRenderer = MarkdownItAsync
@ -398,7 +393,7 @@ export async function createMarkdownRenderer(
}
}
if (options.cjkFriendlyEmphasis !== false && options.cjkFriendly !== false) {
if (options.cjkFriendlyEmphasis !== false) {
mditCjkFriendly(md)
}

Loading…
Cancel
Save