mirror of
https://github.com/erusev/parsedown.git
synced 2025-09-05 20:33:03 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
400c8f7d46 | ||
|
379cbf34b3 | ||
|
b6c8cac512 |
@@ -205,7 +205,7 @@ class Parsedown
|
||||
|
||||
# Quick Paragraph
|
||||
|
||||
if ($line[0] >= 'A' and $line[0] !== '_' and $line[0] !== '[')
|
||||
if ($line[0] >= 'a' or $line[0] >= 'A' and $line[0] <= 'Z')
|
||||
{
|
||||
goto paragraph; # trust me
|
||||
}
|
||||
@@ -277,7 +277,7 @@ class Parsedown
|
||||
|
||||
# ~
|
||||
|
||||
$pure_line = ltrim($line);
|
||||
$pure_line = $line[0] !== ' ' ? $line : ltrim($line);
|
||||
|
||||
# Link Reference
|
||||
|
||||
@@ -560,7 +560,7 @@ class Parsedown
|
||||
|
||||
# Inline Link / Image
|
||||
|
||||
if (strpos($text, '](') !== FALSE and preg_match_all('/(!?)(\[((?:[^][]+|(?2))*)\])\((.*?)\)/', $text, $matches, PREG_SET_ORDER)) # inline
|
||||
if (strpos($text, '](') !== FALSE and preg_match_all('/(!?)(\[((?:[^\[\]]|(?2))*)\])\((.*?)\)/', $text, $matches, PREG_SET_ORDER)) # inline
|
||||
{
|
||||
foreach ($matches as $matches)
|
||||
{
|
||||
|
Reference in New Issue
Block a user