From f4a81091f72299296fb2be7511b08c3cb0e8fa57 Mon Sep 17 00:00:00 2001 From: Peng Guanwen Date: Wed, 15 Nov 2023 22:01:15 +0800 Subject: Lexer change: Allow emphasis in CJK text without spaces (#2648) --- tests/ref/text/emphasis.png | Bin 8575 -> 16982 bytes tests/ref/text/lang-with-region.png | Bin 1389 -> 1392 bytes tests/typ/text/emphasis.typ | 7 +++++++ 3 files changed, 7 insertions(+) (limited to 'tests') diff --git a/tests/ref/text/emphasis.png b/tests/ref/text/emphasis.png index 333f7006..c19f6ebb 100644 Binary files a/tests/ref/text/emphasis.png and b/tests/ref/text/emphasis.png differ diff --git a/tests/ref/text/lang-with-region.png b/tests/ref/text/lang-with-region.png index 097f105d..c7753104 100644 Binary files a/tests/ref/text/lang-with-region.png and b/tests/ref/text/lang-with-region.png differ diff --git a/tests/typ/text/emphasis.typ b/tests/typ/text/emphasis.typ index fd04c8e7..93913dcf 100644 --- a/tests/typ/text/emphasis.typ +++ b/tests/typ/text/emphasis.typ @@ -7,6 +7,13 @@ _Emphasized and *strong* words!_ // Inside of a word it's a normal underscore or star. hello_world Nutzer*innen +// CJK characters will not need spaces. +中文一般使用*粗体*或者_楷体_来表示强调。 + +日本語では、*太字*や_斜体_を使って強調します。 + +中文中混有*Strong*和_Empasis_。 + // Can contain paragraph in nested content block. _Still #[ -- cgit v1.2.3