Skip to main content

code_block_chrome

Function code_block_chrome 

Source
pub fn code_block_chrome(body: El) -> El
Expand description

Wrap an author-supplied body El in the standard code-block surface chrome (sunken muted fill, themed border, rounded corners, SPACE_3 padding). Used by syntax-highlighter integrations that need the same chrome around a styled text_runs([...]) paragraph rather than a plain mono text leaf.