#set page(height: auto, width: 240pt, margin: 30pt)
#set text(font: "Noto Serif CJK SC", lang: "zh")
#show text.where(weight: "bold"): it => {
show regex("\p{Han}"): set text(stroke: 0.8pt)
it
}
#underline[*人 A c*]
#show underline: it => {
show text.where(weight: "bold"): set text(fill: blue)
it
}
#underline[*人 A*]
In any case, I believe all show text: function rules are essentially hacks, because the semantic carried by text is very weak so it can match everything.
Certain show text: function rules (#5140, #5271) might crash the compiler, and they are not even considered as bugs.
Okay I reproduce it this time. It looks like it’s exactly #5271 I mentioned above?
(I wanted to link #5140 in that post. But somehow, I pasted the wrong link #5271… I’m editing that post and keeping both links.)