-
Beta Was this translation helpful? Give feedback.
Answered by
Omikhleia
Sep 22, 2025
Replies: 1 comment 2 replies
-
|
It should be doable, see the barcode example in the User Manual, which does that kind of pseudo-styles with custom commands too. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
N.B. For your case probably via a bracketed span replacing (and/or around) the code inline element.
I am quite sure we currently map code inline elements directly to SILE's "code" without handling any special attributes, incl. styles. There was some reason for that. While Djot theoretically accepts attributes everywhere, it can also become very messy to mix elements that have a natural semantic styling (italic, bold, verbatim) with higher-level styles that can affect that natural styling.