We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc5da2d commit e48c300Copy full SHA for e48c300
1 file changed
Slimdown.php
@@ -23,7 +23,7 @@
23
*/
24
class Slimdown {
25
public static $rules = array (
26
- '/```(.*)```/s' => 'self::code_parse', // code blocks
+ '/```(.*?)```/s' => 'self::code_parse', // code blocks
27
'/\n(#+)(.*)/' => 'self::header', // headers
28
'/\!\[([^\[]+)\]\(([^\)]+)\)/' => '<img src=\'\2\' alt=\'\1\' />', // images
29
'/\[([^\[]+)\]\(([^\)]+)\)/' => '<a href=\'\2\'>\1</a>', // links
0 commit comments