diff --git a/src/renderer/html_handlebars/hbs_renderer.rs b/src/renderer/html_handlebars/hbs_renderer.rs index e9250a3d..6ecd9e17 100644 --- a/src/renderer/html_handlebars/hbs_renderer.rs +++ b/src/renderer/html_handlebars/hbs_renderer.rs @@ -319,7 +319,7 @@ fn add_playpen_pre(html: String) -> String { if classes.contains("language-rust") && !classes.contains("ignore") { // wrap the contents in an external pre block - if text.contains("fn main") { + if text.contains("fn main") || text.contains("quick_main!") { format!("
{}", text) } else { // we need to inject our own main