aboutsummaryrefslogtreecommitdiffstats
path: root/include/markdownify/markdownify.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-18 17:08:03 -0700
committerfriendica <info@friendica.com>2012-07-18 17:08:03 -0700
commitd92a4a686dd989613cfb628896902c7a4f21c522 (patch)
tree6e255cfe2108602c32b40d9d4c424f790176467e /include/markdownify/markdownify.php
parent0400779b43525de44dab7d076aa184d634aba0f2 (diff)
downloadvolse-hubzilla-d92a4a686dd989613cfb628896902c7a4f21c522.tar.gz
volse-hubzilla-d92a4a686dd989613cfb628896902c7a4f21c522.tar.bz2
volse-hubzilla-d92a4a686dd989613cfb628896902c7a4f21c522.zip
eliminate the obsolete "last-child" indicator
Diffstat (limited to 'include/markdownify/markdownify.php')
-rw-r--r--include/markdownify/markdownify.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/markdownify/markdownify.php b/include/markdownify/markdownify.php
index 43730cb77..7bbf1cbbe 100644
--- a/include/markdownify/markdownify.php
+++ b/include/markdownify/markdownify.php
@@ -735,6 +735,13 @@ class Markdownify {
$this->parser->tagAttributes['src'] = $this->decode($this->parser->tagAttributes['src']);
}
+// ![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);
+ 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);
}
-} \ No newline at end of file
+}