Remove the extra run button on runnable rust files

The playpen helper now uses a simple pre block instead of a pre block
with class playpen as it led to nested playpens.
This commit is contained in:
CrazyMerlyn 2017-04-16 18:17:59 +05:30
parent b5ec813d2f
commit 65d7e86024
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ pub fn render_playpen(s: &str, path: &Path) -> String {
continue;
};
let replacement = String::new() + "<pre class=\"playpen\"><code class=\"language-rust\">" + &file_content +
let replacement = String::new() + "<pre><code class=\"language-rust\">" + &file_content +
"</code></pre>";
replaced.push_str(&s[previous_end_index..playpen.start_index]);