commit 5c2de9e971d4db84c118ccc83c788fa9ae14563a
parent a6bd0e4bbf463aba49821a9d5916104d895c2206
Author: markseu <mark2011@mayberg.se>
Date: Tue, 13 Oct 2020 13:25:40 +0200
Updated Markdown for Giovanni
Diffstat:
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/system/extensions/markdown.php b/system/extensions/markdown.php
@@ -2,7 +2,7 @@
// Markdown extension, https://github.com/datenstrom/yellow-extensions/tree/master/source/markdown
class YellowMarkdown {
- const VERSION = "0.8.15";
+ const VERSION = "0.8.16";
public $yellow; // access to API
// Handle initialisation
@@ -3924,7 +3924,7 @@ class YellowMarkdownParser extends MarkdownExtraParser {
$text = $matches[1];
$level = $matches[3][0]=="=" ? 1 : 2;
$attr = $this->doExtraAttributes("h$level", $dummy =& $matches[2]);
- if (empty($attr) && $level>=2 && $level<=3) $attr = $this->getIdAttribute($text);
+ if (empty($attr) && $level>=2) $attr = $this->getIdAttribute($text);
$output = "<h$level$attr>".$this->runSpanGamut($text)."</h$level>";
return "\n".$this->hashBlock($output)."\n\n";
}
@@ -3934,7 +3934,7 @@ class YellowMarkdownParser extends MarkdownExtraParser {
$text = $matches[2];
$level = strlen($matches[1]);
$attr = $this->doExtraAttributes("h$level", $dummy =& $matches[3]);
- if (empty($attr) && $level>=2 && $level<=3) $attr = $this->getIdAttribute($text);
+ if (empty($attr) && $level>=2) $attr = $this->getIdAttribute($text);
$output = "<h$level$attr>".$this->runSpanGamut($text)."</h$level>";
return "\n".$this->hashBlock($output)."\n\n";
}
diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini
@@ -54,11 +54,11 @@ Tag: feature
system/extensions/image.php: image.php, create, update
Extension: Markdown
-Version: 0.8.15
+Version: 0.8.16
Description: Text formatting for humans.
HelpUrl: https://github.com/datenstrom/yellow-extensions/tree/master/source/markdown
DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/master/zip/markdown.zip
-Published: 2020-07-26 16:03:56
+Published: 2020-10-13 13:21:30
Developer: Datenstrom
Tag: feature
system/extensions/markdown.php: markdown.php, create, update