The above solution works in your case, but the effect depends on the font heavily. Moreover, it will disrupt text search in the PDF.
The following solution leverages underline.stroke, so it keeps PDF search okay. However, this solution does not work if you have set text(tracking: …).
#show strong: body => {
show regex("\p{sc=Hani}+"): s => {
underline(s, offset: 3pt, stroke: (
cap: "round",
thickness: 0.1em,
dash: (array: (0em, 1em), phase: 0.5em)
))
}
body
}
We can conclude that this feature is so complicated that it has to be natively supported by Typst.
Previous discussions in the Chinese community are recorded in the following issue.