mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 05:22:59 +00:00
Bugfix: Return templates as rawHtml instead of text to avoid double-escaping rendered html
This commit is contained in:
parent
dc747547be
commit
017281375d
2 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@
|
||||||
"version": "0.3.2",
|
"version": "0.3.2",
|
||||||
"author": "Starbeamrainbowlabs",
|
"author": "Starbeamrainbowlabs",
|
||||||
"description": "Adds threaded comments to the bottom of every page.",
|
"description": "Adds threaded comments to the bottom of every page.",
|
||||||
"lastupdate": 1549840530,
|
"lastupdate": 1551562406,
|
||||||
"optional": false,
|
"optional": false,
|
||||||
"extra_data": []
|
"extra_data": []
|
||||||
},
|
},
|
||||||
|
@ -317,7 +317,7 @@
|
||||||
"version": "0.10",
|
"version": "0.10",
|
||||||
"author": "Emanuil Rusev & Starbeamrainbowlabs",
|
"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.",
|
"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,
|
"optional": false,
|
||||||
"extra_data": {
|
"extra_data": {
|
||||||
"Parsedown.php": "https:\/\/raw.githubusercontent.com\/erusev\/parsedown\/819c68899d593503180ed79ef4be5a4dcd8c5f92\/Parsedown.php",
|
"Parsedown.php": "https:\/\/raw.githubusercontent.com\/erusev\/parsedown\/819c68899d593503180ed79ef4be5a4dcd8c5f92\/Parsedown.php",
|
||||||
|
|
|
@ -483,7 +483,7 @@ class PeppermintParsedown extends ParsedownExtra
|
||||||
|
|
||||||
return [
|
return [
|
||||||
"name" => "div",
|
"name" => "div",
|
||||||
"text" => $parsedTemplateSource,
|
"rawHtml" => $parsedTemplateSource,
|
||||||
"attributes" => [
|
"attributes" => [
|
||||||
"class" => "template"
|
"class" => "template"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue