touying-raw
touying-raw(block: true, lang: auto, 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.
block : bool default: true
Whether the raw block is a block element. Default is true.
lang : auto | none | str default: auto
The language for syntax highlighting. Default is auto, which takes the language of the raw block body, or else leaves it to set raw(lang: ..). none turns highlighting off.
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