X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fmarkdownify%2Fmarkdownify.php;h=0d4429a01336e10d9ce17ab43170201ae874bef1;hb=7c7d3fe5de3461867609031d7cdb16ff4ec4e1c3;hp=7bbf1cbbed60c9047ff793bac8c104c4cdb97f27;hpb=c8f99a8a668d78c81b422b3df1964e8fd2f2e3b7;p=friendica.git diff --git a/include/markdownify/markdownify.php b/include/markdownify/markdownify.php index 7bbf1cbbed..0d4429a013 100644 --- a/include/markdownify/markdownify.php +++ b/include/markdownify/markdownify.php @@ -686,6 +686,10 @@ class Markdownify { # [1]: mailto:mail@example.com Title $tag['href'] = 'mailto:'.$bufferDecoded; } + + $this->out('['.$buffer.']('.$tag['href'].' "'.$tag['title'].'")', true); + +/* # [This link][id] foreach ($this->stack['a'] as $tag2) { if ($tag2['href'] == $tag['href'] && $tag2['title'] === $tag['title']) { @@ -699,6 +703,7 @@ class Markdownify { } $this->out('['.$buffer.']['.$tag['linkID'].']', true); +*/ } } /** @@ -737,7 +742,7 @@ class Markdownify { // ![Alt text](/path/to/img.jpg "Optional title") if ($this->parser->tagAttributes['title'] != "") - $this->out('!['.$this->parser->tagAttributes['alt'].']('.$this->parser->tagAttributes['src'].'"'.$this->parser->tagAttributes['title'].'")', true); + $this->out('!['.$this->parser->tagAttributes['alt'].']('.$this->parser->tagAttributes['src'].' "'.$this->parser->tagAttributes['title'].'")', true); else $this->out('!['.$this->parser->tagAttributes['alt'].']('.$this->parser->tagAttributes['src'].')', true);