1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-12-22 01:35:02 +00:00

Bugfix: Return templates as rawHtml instead of text to avoid double-escaping rendered html

This commit is contained in:
Starbeamrainbowlabs 2019-03-02 22:07:58 +00:00
parent dc747547be
commit 017281375d
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 3 additions and 3 deletions

View file

@ -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",

View file

@ -483,7 +483,7 @@ class PeppermintParsedown extends ParsedownExtra
return [
"name" => "div",
"text" => $parsedTemplateSource,
"rawHtml" => $parsedTemplateSource,
"attributes" => [
"class" => "template"
]