From 017281375d86c20a2911ce44c56ee92c54253af6 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 2 Mar 2019 22:07:58 +0000 Subject: [PATCH] Bugfix: Return templates as rawHtml instead of text to avoid double-escaping rendered html --- module_index.json | 4 ++-- modules/parser-parsedown.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module_index.json b/module_index.json index 71f79f5..49872ae 100755 --- a/module_index.json +++ b/module_index.json @@ -65,7 +65,7 @@ "version": "0.3.2", "author": "Starbeamrainbowlabs", "description": "Adds threaded comments to the bottom of every page.", - "lastupdate": 1549840530, + "lastupdate": 1551562406, "optional": false, "extra_data": [] }, @@ -317,7 +317,7 @@ "version": "0.10", "author": "Emanuil Rusev & Starbeamrainbowlabs", "description": "An upgraded (now default!) parser based on Emanuil Rusev's Parsedown Extra PHP library (https:\/\/github.com\/erusev\/parsedown-extra), which is licensed MIT. Please be careful, as this module adds some weight to your installation, and also *requires* write access to the disk on first load.", - "lastupdate": 1551534540, + "lastupdate": 1551564416, "optional": false, "extra_data": { "Parsedown.php": "https:\/\/raw.githubusercontent.com\/erusev\/parsedown\/819c68899d593503180ed79ef4be5a4dcd8c5f92\/Parsedown.php", diff --git a/modules/parser-parsedown.php b/modules/parser-parsedown.php index c60a6d6..c7f73d1 100644 --- a/modules/parser-parsedown.php +++ b/modules/parser-parsedown.php @@ -483,7 +483,7 @@ class PeppermintParsedown extends ParsedownExtra return [ "name" => "div", - "text" => $parsedTemplateSource, + "rawHtml" => $parsedTemplateSource, "attributes" => [ "class" => "template" ]