fix(dsl): render [p] labels in italics

Style and grammar labels printed upright while sources mark the same
words in different ways, so identical labels rendered inconsistently.

Every [p] block now uses the label color with italic posture, and the
text scan for specific label words is removed.
This commit is contained in:
OneWay committed 2026-09-21 21:53:32 +08:00
1 parent cf29f19511
commit ac9a22dbe1
1 file changed
+1 -1
@@ -216,7 +216,7 @@ object DslAnnotatedParser {
}
}
"p" -> {
push(labelStyle)
push(labelStyle.copy(fontStyle = FontStyle.Italic))
}
"b" -> push(SpanStyle(fontWeight = FontWeight.Bold))
"m", "m0", "m1", "m2", "m3", "m4", "m5" -> {