Skip to content

Commit 2322426

Browse files
authored
Merge pull request #3 from stmaccarelli/master
2 parents 247aa5a + 3f5af1a commit 2322426

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Slimdown.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@
2323
*/
2424
class Slimdown {
2525
public static $rules = array (
26-
'/```(.*?)```/s' => 'self::code_parse', // code blocks
27-
'/\n(#+)(.*)/' => 'self::header', // headers
26+
'/```(.*?)```/s' => self::class .'::code_parse', // code blocks
27+
'/\n(#+)(.*)/' => self::class .'::header', // headers
2828
'/\!\[([^\[]+)\]\(([^\)]+)\)/' => '<img src=\'\2\' alt=\'\1\' />', // images
2929
'/\[([^\[]+)\]\(([^\)]+)\)/' => '<a href=\'\2\'>\1</a>', // links
3030
'/(\*\*|__)(.*?)\1/' => '<strong>\2</strong>', // bold
3131
'/(\*|_)(.*?)\1/' => '<em>\2</em>', // emphasis
3232
'/\~\~(.*?)\~\~/' => '<del>\1</del>', // del
3333
'/\:\"(.*?)\"\:/' => '<q>\1</q>', // quote
3434
'/`(.*?)`/' => '<code>\1</code>', // inline code
35-
'/\n\*(.*)/' => 'self::ul_list', // ul lists
36-
'/\n[0-9]+\.(.*)/' => 'self::ol_list', // ol lists
37-
'/\n(&gt;|\>)(.*)/' => 'self::blockquote', // blockquotes
35+
'/\n\*(.*)/' => self::class .'::ul_list', // ul lists
36+
'/\n[0-9]+\.(.*)/' => self::class .'::ol_list', // ol lists
37+
'/\n(&gt;|\>)(.*)/' => self::class .'::blockquote', // blockquotes
3838
'/\n-{5,}/' => "\n<hr />", // horizontal rule
39-
'/\n([^\n]+)\n/' => 'self::para', // add paragraphs
39+
'/\n([^\n]+)\n/' => self::class .'::para', // add paragraphs
4040
'/<\/ul>\s?<ul>/' => '', // fix extra ul
4141
'/<\/ol>\s?<ol>/' => '', // fix extra ol
4242
'/<\/blockquote><blockquote>/' => "\n" // fix extra blockquote

0 commit comments

Comments
 (0)