How can I display links as monospace?

Using #show link: underline I can get all my links underlined.

I want my links to be colored and monospace, but I can not get them to be monospaced, because #show link: raw or #show link: lnk => raw(str(lnk.body)) both do not work, because the body of the link is of the type content while the raw-function needs strings not content.

you can use a show-set rule to change the font to a monospace one:

#show link: set text(font: "CodeNewRoman Nerd Font Mono")

image

2 Likes

I didn’t think of this. Thank you! :)

1 Like