fix(prose): mid-line italic emphasis is not a return

Skip *very important* / *foo.bar* / *code-as-docs* so narrative emphasis cannot end a function; keep whole-line *n* and 返回*n*.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-09-14 15:25:26 +08:00
1 parent bccfec86ba
commit 6994acb91d
4 files changed
+36 -22

No files matched your search

+2 -1
View File
@@ -1,12 +1,13 @@
---
title: G2 叙述强调不执行
description: 句中 **说明** / *only* 为装饰;像代码的粗体与整行斜体仍执行
description: 句中 **说明** / *only* / *very important* 为装饰;像代码的粗体与整行斜体仍执行
markup: v0.3
---
# main
本段既是**说明**也是**程序**;英文里也有 *only* 这类强调词。
This is *very important* documentation, see *foo.bar* and *code-as-docs*.
**n = 1**
**n = n + 1**