Skip to content

Commit

Permalink
Merge pull request #7 from sorenpeter/patch-1
Browse files Browse the repository at this point in the history
Adding support for empty alt-text in img-tags
  • Loading branch information
lux authored Oct 17, 2023
2 parents c5cc6d0 + d4b8a56 commit 1a1a8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slimdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Slimdown {
public static $rules = array (
'/```(.*?)```/s' => self::class .'::code_parse', // code blocks
'/\n(#+)(.*)/' => self::class .'::header', // headers
'/\!\[([^\[]+)\]\(([^\)]+)\)/' => self::class .'::img', // images
'/\!\[(.*?)\]\(([^\)]+)\)/' => self::class .'::img', // images
'/\[([^\[]+)\]\(([^\)]+)\)/' => self::class .'::link', // links
'/(\*\*|__)(?=(?:(?:[^`]*`[^`\r\n]*`)*[^`]*$))(?![^\/<]*>.*<\/.+>)(.*?)\1/' => '<strong>\2</strong>', // bold
'/(\*|_)(?=(?:(?:[^`]*`[^`\r\n]*`)*[^`]*$))(?![^\/<]*>.*<\/.+>)(.*?)\1/' => '<em>\2</em>', // emphasis
Expand Down

0 comments on commit 1a1a8b0

Please sign in to comment.