fix(webui): keep CJK prose outside bold URL links (#6115)
* fix(webui): bound bare URLs before CJK punctuation * fix(webui): preserve GFM boundaries before CJK URL handling
This commit is contained in:
1 parent
2245fc0ee5
commit
de56e5de6b
3 files changed
+158
No files matched your search
@@ -37,6 +37,7 @@ import {
|
||||
import { useLogoFallback } from "@/hooks/useLogoFallback";
|
||||
import { inferMediaKind } from "@/lib/media";
|
||||
import { browserSafeFaviconUrls } from "@/lib/provider-brand";
|
||||
import { remarkCjkAutolinks } from "@/lib/remark-cjk-autolinks";
|
||||
import { remarkTexMath } from "@/lib/remark-tex-math";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
@@ -300,6 +301,7 @@ const remarkPlugins: NonNullable<StreamdownProps["remarkPlugins"]> = [
|
||||
remarkCjkStrongBoundaries,
|
||||
remarkBreaks,
|
||||
remarkGfm,
|
||||
remarkCjkAutolinks,
|
||||
[remarkMath, { singleDollarTextMath: false }],
|
||||
remarkTexMath,
|
||||
remarkSafeHtmlSubset,
|
||||
|
||||
Reference in new issue
Block a user