diff options
author | Shogo Takata <pineapplehunter.daniel@gmail.com> | 2021-05-25 12:26:43 +0900 |
---|---|---|
committer | Shogo Takata <peshogo+github.com@gmail.com> | 2022-03-26 14:50:47 +0900 |
commit | b85c3035fef8c572e4e8953ef8ace55e2e77b771 (patch) | |
tree | 2783ae372be736b33e02472958f2ccafd2ae5807 /src/config.rs | |
parent | fa0f9df497d6f17cc519a20e687b7302ecf5716c (diff) |
Config to toggle the run button on codeblocks
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index daeccbd0..181aad66 100644 --- a/src/config.rs +++ b/src/config.rs @@ -630,6 +630,8 @@ pub struct Playground { pub copy_js: bool, /// Display line numbers on playground snippets. Default: `false`. pub line_numbers: bool, + /// Display the run button. Default: `true` + pub runnable: bool, } impl Default for Playground { @@ -639,6 +641,7 @@ impl Default for Playground { copyable: true, copy_js: true, line_numbers: false, + runnable: true, } } } @@ -781,6 +784,7 @@ mod tests { copyable: true, copy_js: true, line_numbers: false, + runnable: true, }; let html_should_be = HtmlConfig { curly_quotes: true, |