mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
Add image size support to parsedown
This commit is contained in:
parent
62ca46e9cd
commit
b6dbfaa6b8
3
library/vendor/Parsedown/Parsedown.php
vendored
3
library/vendor/Parsedown/Parsedown.php
vendored
@ -782,6 +782,9 @@ class Parsedown
|
||||
{
|
||||
$element['»'] = str_replace('&', '&', $element['»']);
|
||||
$element['»'] = str_replace('<', '<', $element['»']);
|
||||
// TODO: this should be documented and patched upstream
|
||||
$element['»'] = preg_replace('~ =(\d+)x$~', '" width="$1', $element['»']);
|
||||
$element['»'] = preg_replace('~ =(\d+)x(\d+)$~', '" width="$1" height="$2"', $element['»']);
|
||||
|
||||
if ($element['!'])
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user