mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:50:10 +00:00
Changed markdown to enable diaspora postings with images that contain links
This commit is contained in:
parent
04c31d194f
commit
2aa67d67f5
2 changed files with 9 additions and 4 deletions
|
@ -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 {
|
|||
|
||||
// 
|
||||
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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue