mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +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['»']);
|
||||||
$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['!'])
|
if ($element['!'])
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user