Skip to main content

encode_preview_html

Function encode_preview_html 

Source
pub fn encode_preview_html(caption: &str) -> String
Expand description

Build a page that previews koi.gif and koi.png, read from beside it, on GitHub’s light and dark page colors under the given caption. It draws nothing itself and loads no scripts or outside files, so it shows exactly what was generated.