mirror of
https://github.com/erusev/parsedown.git
synced 2023-08-10 21:13:06 +03:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
f43f54b877 | |||
d733acc94e | |||
6a0695deb9 |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
|
.idea
|
||||||
nbproject
|
nbproject
|
@ -506,8 +506,6 @@ class Parsedown
|
|||||||
$element = '<a href="'.$matches[4].'">'.$element_text.'</a>';
|
$element = '<a href="'.$matches[4].'">'.$element_text.'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
$element_text = $this->parse_inline_elements($matches[1]);
|
|
||||||
|
|
||||||
# ~
|
# ~
|
||||||
|
|
||||||
$code = "\x1A".'$'.$index;
|
$code = "\x1A".'$'.$index;
|
||||||
@ -526,15 +524,15 @@ class Parsedown
|
|||||||
{
|
{
|
||||||
foreach ($matches as $matches)
|
foreach ($matches as $matches)
|
||||||
{
|
{
|
||||||
$link_difinition = isset($matches[3]) && $matches[3]
|
$link_definition = isset($matches[3]) && $matches[3]
|
||||||
? $matches[3]
|
? $matches[3]
|
||||||
: $matches[2]; # implicit
|
: $matches[2]; # implicit
|
||||||
|
|
||||||
$link_difinition = strtolower($link_difinition);
|
$link_definition = strtolower($link_definition);
|
||||||
|
|
||||||
if (isset($this->reference_map[$link_difinition]))
|
if (isset($this->reference_map[$link_definition]))
|
||||||
{
|
{
|
||||||
$url = $this->reference_map[$link_difinition];
|
$url = $this->reference_map[$link_definition];
|
||||||
|
|
||||||
if ($matches[1]) # image
|
if ($matches[1]) # image
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user