Merge pull request #252 from crazymerlyn/fix-runnable-files
Remove the extra run button on runnable rust files
This commit is contained in:
commit
9602acce80
|
@ -35,7 +35,7 @@ pub fn render_playpen(s: &str, path: &Path) -> String {
|
||||||
continue;
|
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>";
|
"</code></pre>";
|
||||||
|
|
||||||
replaced.push_str(&s[previous_end_index..playpen.start_index]);
|
replaced.push_str(&s[previous_end_index..playpen.start_index]);
|
||||||
|
|
Loading…
Reference in New Issue