Page MenuHomePhabricator

D12594.diff
No OneTemporary

D12594.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
Tue, Mar 18, 10:56 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7395510
Default Alt Text
D12594.diff (712 B)

Event Timeline