mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +00:00
Bugfix: Nest external rendered images inside a <p> to make them block-level
This commit is contained in:
parent
bba614df2f
commit
657213c11c
2 changed files with 8 additions and 5 deletions
|
@ -337,7 +337,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.",
|
||||
"lastupdate": 1571947549,
|
||||
"lastupdate": 1571958901,
|
||||
"optional": false,
|
||||
"extra_data": {
|
||||
"Parsedown.php": "https:\/\/raw.githubusercontent.com\/erusev\/parsedown\/fe7a50eceb4a3c867cc9fa9c0aa906b1067d1955\/Parsedown.php",
|
||||
|
|
|
@ -1007,10 +1007,13 @@ class PeppermintParsedown extends ParsedownExtreme
|
|||
$renderer = $settings->parser_ext_renderers->$language;
|
||||
|
||||
$result["element"] = [
|
||||
"name" => "img",
|
||||
"attributes" => [
|
||||
"alt" => "Diagram rendered by {$renderer->name}",
|
||||
"src" => "?action=parsedown-render-ext&language=$language&immutable_key=".hash("crc32b", json_encode($renderer))."&source=".rawurlencode($text)
|
||||
"name" => "p",
|
||||
"element" => [
|
||||
"name" => "img",
|
||||
"attributes" => [
|
||||
"alt" => "Diagram rendered by {$renderer->name}",
|
||||
"src" => "?action=parsedown-render-ext&language=$language&immutable_key=".hash("crc32b", json_encode($renderer))."&source=".rawurlencode($text)
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue