#Local #show doesn't seem to take effect

6 messages · Page 1 of 1 (latest)

bold vine
#

I'm trying to colour "•" across a whole document, except in some part where it should be coloured as the surrounding text. From the docs I expected the #show rule to apply locally, but it doesn't seem to work in this case:

#show "•": text.with(fill: red)

This is • red

#block[
#show "•": text.with(fill: blue)
#show "red": smallcaps
This is • red?
]

This is • red
#

?render

#show "•": text.with(fill: red)

This is • red

#block[
#show "•": text.with(fill: blue)
#show "red": smallcaps
This is • red?
]

This is • red
sterile vineBOT
bold vine
#

Seems to have something to do with the recursive problem that prevents defining "•" as itself, because if I replace it with another character then it picks up the colour too

mellow tree
bold vine
#

It does seem related – is there a workaround?