Page MenuHomePhabricator

D12594.id30238.diff
No OneTemporary

D12594.id30238.diff

diff --git a/src/markup/engine/remarkup/blockrule/PhutilRemarkupCodeBlockRule.php b/src/markup/engine/remarkup/blockrule/PhutilRemarkupCodeBlockRule.php
--- a/src/markup/engine/remarkup/blockrule/PhutilRemarkupCodeBlockRule.php
+++ b/src/markup/engine/remarkup/blockrule/PhutilRemarkupCodeBlockRule.php
@@ -155,8 +155,13 @@
$options['name']);
}
+ $class = 'remarkup-code-block';
+ if ($options['counterexample']) {
+ $class = 'remarkup-code-block code-block-counterexample';
+ }
+
$attributes = array(
- 'class' => 'remarkup-code-block',
+ 'class' => $class,
'data-code-lang' => $options['lang'],
'data-sigil' => 'remarkup-code-block',
);

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 16, 8:40 AM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7395510
Default Alt Text
D12594.id30238.diff (712 B)

Event Timeline