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:
1 parent
cf29f19511
commit
ac9a22dbe1
1 file changed
+1
-1
@@ -216,7 +216,7 @@ object DslAnnotatedParser {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
"p" -> {
|
"p" -> {
|
||||||
push(labelStyle)
|
push(labelStyle.copy(fontStyle = FontStyle.Italic))
|
||||||
}
|
}
|
||||||
"b" -> push(SpanStyle(fontWeight = FontWeight.Bold))
|
"b" -> push(SpanStyle(fontWeight = FontWeight.Bold))
|
||||||
"m", "m0", "m1", "m2", "m3", "m4", "m5" -> {
|
"m", "m0", "m1", "m2", "m3", "m4", "m5" -> {
|
||||||
|
|||||||
Reference in new issue
Block a user