Skip to content

Commit f07a06c

Browse files
committed
Removed unused code
1 parent 64dabb9 commit f07a06c

3 files changed

Lines changed: 7 additions & 9 deletions

File tree

system/extensions/update-available.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -489,14 +489,14 @@ system/themes/karlskrona.css: karlskrona.css, create, update, careful
489489
system/themes/karlskrona.png: karlskrona.png, create
490490

491491
Extension: Markdown
492-
Version: 0.9.7
492+
Version: 0.9.8
493493
Description: Text formatting for humans.
494494
Developer: Anna Svensson
495495
Tag: feature
496496
DownloadUrl: https://github.com/annaesvensson/yellow-markdown/archive/refs/heads/main.zip
497497
DocumentationUrl: https://github.com/annaesvensson/yellow-markdown
498498
DocumentationLanguage: en, de, sv
499-
Published: 2026-02-23 17:14:27
499+
Published: 2026-02-24 18:30:33
500500
Status: available
501501
system/workers/markdown.php: markdown.php, create, update
502502

system/extensions/update-installed.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ media/downloads/yellow-svenska.pdf: yellow-svenska.pdf, create
8787
./robots.txt: robots.txt, create
8888

8989
Extension: Markdown
90-
Version: 0.9.7
90+
Version: 0.9.8
9191
Description: Text formatting for humans.
9292
Developer: Anna Svensson
9393
Tag: feature
9494
DownloadUrl: https://github.com/annaesvensson/yellow-markdown/archive/refs/heads/main.zip
9595
DocumentationUrl: https://github.com/annaesvensson/yellow-markdown
9696
DocumentationLanguage: en, de, sv
97-
Published: 2026-02-23 17:14:27
97+
Published: 2026-02-24 18:30:33
9898
Status: available
9999
system/workers/markdown.php: markdown.php, create, update
100100

system/workers/markdown.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// Markdown extension, https://github.com/annaesvensson/yellow-markdown
33

44
class YellowMarkdown {
5-
const VERSION = "0.9.7";
5+
const VERSION = "0.9.8";
66
public $yellow; // access to API
77

88
// Handle initialisation
@@ -4051,10 +4051,8 @@ public function _doGeneralBlocks_callback($matches) {
40514051
$attr = $this->doExtraAttributes("div", $parts[1]);
40524052
}
40534053
if (!is_string_empty($text)) {
4054-
$output = $this->page->parseContentElement($name, "[--general--]", $attributes, "general");
4055-
if (!is_null($output) && preg_match("/^(.+)(\[--general--\])(.+)$/s", $output, $parts)) {
4056-
$output = $parts[1].$this->runBlockGamut($text).$parts[3];
4057-
} else {
4054+
$output = $this->page->parseContentElement($name, $text, $attributes, "general");
4055+
if (is_null($output)) {
40584056
$output = "<div$attr>\n".$this->runBlockGamut($text)."\n</div>";
40594057
}
40604058
} else {

0 commit comments

Comments
 (0)