Skip to content

Commit 30cd3f0

Browse files
committed
Fixed comment alignment
1 parent f15efcb commit 30cd3f0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Slimdown.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Slimdown {
2525
public static $rules = array (
2626
'/```(.*?)```/s' => self::class .'::code_parse', // code blocks
2727
'/\n(#+)\s+(.*)/' => self::class .'::header', // headers
28-
'/\!\[([^\[]*?)\]\(([^\)]+)\)/' => self::class .'::img', // images
28+
'/\!\[([^\[]*?)\]\(([^\)]+)\)/' => self::class .'::img', // images
2929
'/\[([^\[]+)\]\(([^\)]+)\)/' => self::class .'::link', // links
3030
'/(\*\*|__)(?=(?:(?:[^`]*`[^`\r\n]*`)*[^`]*$))(?![^\/<]*>.*<\/.+>)(.*?)\1/' => '<strong>\2</strong>', // bold
3131
'/(\*|_)(?=(?:(?:[^`]*`[^`\r\n]*`)*[^`]*$))(?![^\/<]*>.*<\/.+>)(.*?)\1/' => '<em>\2</em>', // emphasis
@@ -34,10 +34,10 @@ class Slimdown {
3434
'/`(.*?)`/' => '<code>\1</code>', // inline code
3535
'/(\n[\*|\-] )\[x\]/' => '\1<input type=\'checkbox\' disabled checked>', // checkbox checked
3636
'/(\n[\*|\-] )\[\ \]/' => '\1<input type=\'checkbox\' disabled>', // checkbox unchecked
37-
'/\n[\*|\-] (.*)/' => self::class .'::ul_list', // ul lists
37+
'/\n[\*|\-] (.*)/' => self::class .'::ul_list', // ul lists
3838
'/\n[0-9]+\.(.*)/' => self::class .'::ol_list', // ol lists
3939
'/\n(&gt;|\>)(.*)/' => self::class .'::blockquote', // blockquotes
40-
'/\n-{5,}/' => "\n<hr>", // horizontal rule
40+
'/\n-{5,}/' => "\n<hr>", // horizontal rule
4141
'/\n([^\n]+)\n/' => self::class .'::para', // add paragraphs
4242
'/<\/ul>\s?<ul>/' => '', // fix extra ul
4343
'/<\/ol>\s?<ol>/' => '', // fix extra ol

0 commit comments

Comments
 (0)