mirror of
https://github.com/friendica/friendica
synced 2025-04-26 23:10:11 +00:00
Changes in the bbcode to markdown converter to make it more compatible with Diaspora
This commit is contained in:
parent
8d7d46ae7a
commit
4e9086f9b0
3 changed files with 22 additions and 1 deletions
|
@ -735,6 +735,13 @@ class Markdownify {
|
|||
$this->parser->tagAttributes['src'] = $this->decode($this->parser->tagAttributes['src']);
|
||||
}
|
||||
|
||||
// 
|
||||
if ($this->parser->tagAttributes['title'] != "")
|
||||
$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);
|
||||
|
||||
/*
|
||||
# [This link][id]
|
||||
$link_id = false;
|
||||
if (!empty($this->stack['a'])) {
|
||||
|
@ -759,6 +766,7 @@ class Markdownify {
|
|||
}
|
||||
|
||||
$this->out('!['.$this->parser->tagAttributes['alt'].']['.$link_id.']', true);
|
||||
*/
|
||||
}
|
||||
/**
|
||||
* handle <code> tags
|
||||
|
@ -1181,4 +1189,4 @@ class Markdownify {
|
|||
function parent() {
|
||||
return end($this->parser->openTags);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue