Page MenuHomePhabricator

D11091.diff
No OneTemporary

D11091.diff

diff --git a/src/markup/engine/__tests__/remarkup/backticks-whitespace.txt b/src/markup/engine/__tests__/remarkup/backticks-whitespace.txt
--- a/src/markup/engine/__tests__/remarkup/backticks-whitespace.txt
+++ b/src/markup/engine/__tests__/remarkup/backticks-whitespace.txt
@@ -1,14 +1,14 @@
-```x```
+```x```
```
y
-```
+```
~~~~~~~~~~
-<div class="remarkup-code-block" data-code-lang="php" data-sigil="remarkup-code-block"><pre class="remarkup-code"><span class="no">x</span></pre></div>
+<div class="remarkup-code-block" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code">x</pre></div>
-<div class="remarkup-code-block" data-code-lang="php" data-sigil="remarkup-code-block"><pre class="remarkup-code"><span class="no">y</span></pre></div>
+<div class="remarkup-code-block" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code">y</pre></div>
~~~~~~~~~~
x
diff --git a/src/markup/engine/__tests__/remarkup/just-backticks.txt b/src/markup/engine/__tests__/remarkup/just-backticks.txt
--- a/src/markup/engine/__tests__/remarkup/just-backticks.txt
+++ b/src/markup/engine/__tests__/remarkup/just-backticks.txt
@@ -1,5 +1,5 @@
```
~~~~~~~~~~
-<div class="remarkup-code-block" data-code-lang="php" data-sigil="remarkup-code-block"><pre class="remarkup-code"></pre></div>
+<div class="remarkup-code-block" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code"></pre></div>
~~~~~~~~~~
diff --git a/src/markup/engine/__tests__/remarkup/tick-block-multi.txt b/src/markup/engine/__tests__/remarkup/tick-block-multi.txt
--- a/src/markup/engine/__tests__/remarkup/tick-block-multi.txt
+++ b/src/markup/engine/__tests__/remarkup/tick-block-multi.txt
@@ -5,11 +5,11 @@
more code```
~~~~~~~~~~
-<div class="remarkup-code-block" data-code-lang="php" data-sigil="remarkup-code-block"><pre class="remarkup-code"><span class="no">code</span>
+<div class="remarkup-code-block" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code">code
-<span class="no">more</span> <span class="no">code</span>
+more code
-<span class="no">more</span> <span class="no">code</span></pre></div>
+more code</pre></div>
~~~~~~~~~~
code
diff --git a/src/markup/engine/__tests__/remarkup/tick-block.txt b/src/markup/engine/__tests__/remarkup/tick-block.txt
--- a/src/markup/engine/__tests__/remarkup/tick-block.txt
+++ b/src/markup/engine/__tests__/remarkup/tick-block.txt
@@ -1,5 +1,5 @@
```code```
~~~~~~~~~~
-<div class="remarkup-code-block" data-code-lang="php" data-sigil="remarkup-code-block"><pre class="remarkup-code"><span class="no">code</span></pre></div>
+<div class="remarkup-code-block" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code">code</pre></div>
~~~~~~~~~~
code
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
@@ -123,7 +123,7 @@
if (!$lang) {
$lang = nonempty(
$this->getEngine()->getConfig('phutil.codeblock.language-default'),
- 'php');
+ 'text');
}
$options['lang'] = $lang;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 19, 10:06 AM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6726115
Default Alt Text
D11091.diff (3 KB)

Event Timeline