touying-raw
touying-raw(block: true, lang: none, fill-empty-lines: true, simple: false, body)(source)Animated code block. Use a comment-style pause or meanwhile on its own line to insert animation markers.
A line is treated as a pause or meanwhile marker when its only
meaningful characters (letters, digits, CJK) exactly spell "pause" or
"meanwhile". For example, // pause, # pause, and #pause are all
valid markers, while pause = 1 or def pause(): are not.
Example:
#show: simple-theme.with(aspect-ratio: "16-9")
= Slide
#touying-raw(```rust
fn main() {
// pause
println!("Hello, world!");
}
```)
block : bool default: true
Whether the raw block is a block element. Default is true.
lang : none | str default: none
The language for syntax highlighting. When none, the language is inferred from the raw block body if possible. Default is none.
fill-empty-lines : bool default: true
Whether to replace hidden lines with empty lines to preserve the layout of visible lines. Default is true.
simple : bool default: false
When true, use #pause; and #meanwhile; as direct split markers (similar to how touying-mitex uses \pause). Default is false.
body : str | content | function
The raw code content. Can be a raw block, a string, or a function receiving self as an argument.
Returns: content