Skip to main content

BlockRenderer

Type Alias BlockRenderer 

Source
pub type BlockRenderer = fn(language: &str, code: &str, _: &mut Window, _: &mut App) -> Option<AnyElement>;
Expand description

Paints the block a fence’s info string names, or None to leave it to the ordinary code block.

One answer for a language nothing paints, a renderer that has not been installed, and a renderer that looked at the code and declined.