|
@@ -219,7 +219,7 @@ discard block |
|
|
block discarded – undo |
|
219
|
219
|
$level = \strlen($this->trimmedLine) - \strlen(\ltrim($this->trimmedLine, '#')); |
|
220
|
220
|
|
|
221
|
221
|
if ($level < 7) { |
|
222
|
|
- $this->markup .= "\n<h{$level}>" . \ltrim(\ltrim($this->trimmedLine, '# ')) . "</h{$level}>"; |
|
|
222
|
+ $this->markup .= "\n<h{$level}>".\ltrim(\ltrim($this->trimmedLine, '# '))."</h{$level}>"; |
|
223
|
223
|
|
|
224
|
224
|
return \true; |
|
225
|
225
|
} |
|
@@ -246,7 +246,7 @@ discard block |
|
|
block discarded – undo |
|
246
|
246
|
|
|
247
|
247
|
if ($codeBlock || (!$this->inList && !$this->inQuote && $isShifted)) { |
|
248
|
248
|
$lang = isset($codeMatch[1]) |
|
249
|
|
- ? ' class="language-' . $codeMatch[1] . '"' |
|
|
249
|
+ ? ' class="language-'.$codeMatch[1].'"' |
|
250
|
250
|
: ''; |
|
251
|
251
|
|
|
252
|
252
|
$this->markup .= "\n<pre><code{$lang}>"; |
|
@@ -309,7 +309,7 @@ discard block |
|
|
block discarded – undo |
|
309
|
309
|
$this->listLevel++; |
|
310
|
310
|
} |
|
311
|
311
|
|
|
312
|
|
- $this->markup .= '<li>' . \ltrim($this->trimmedLine, '+-*0123456789. '); |
|
|
312
|
+ $this->markup .= '<li>'.\ltrim($this->trimmedLine, '+-*0123456789. '); |
|
313
|
313
|
|
|
314
|
314
|
$this->listInternal(); |
|
315
|
315
|
|
|
@@ -395,7 +395,7 @@ discard block |
|
|
block discarded – undo |
|
395
|
395
|
$this->trimmedLine = \trim($this->trimmedLine, '|'); |
|
396
|
396
|
|
|
397
|
397
|
foreach (\explode('|', $this->trimmedLine) as $hdr) { |
|
398
|
|
- $this->markup .= '<th>' . \trim($hdr) . "</th>\n"; |
|
|
398
|
+ $this->markup .= '<th>'.\trim($hdr)."</th>\n"; |
|
399
|
399
|
} |
|
400
|
400
|
|
|
401
|
401
|
$this->markup .= "</tr>\n</thead>\n<tbody>\n"; |
Please login to merge, or discard this patch.