Hello. These rules do work correctly in Typst. I don’t know what Quarto is, but there is little chance it can compile Typst code, so it shouldn’t matter what you use, what matters is what Typst code is being compiled. Without providing code that doesn’t work, I can’t help. See https://sscce.org/.