diff options
author | n-peugnet <n.peugnet@free.fr> | 2020-06-22 14:42:13 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2021-03-04 17:54:44 +0100 |
commit | a6cd68227b644372eac7ff24cd55ce2fb8dc1235 (patch) | |
tree | d57929fafe7673a6a848b98c8cbe9893e883bf8e | |
parent | f30ec46d410f4c0bf986929e132f8a9efd4d0530 (diff) | |
download | wcms-a6cd68227b644372eac7ff24cd55ce2fb8dc1235.tar.gz wcms-a6cd68227b644372eac7ff24cd55ce2fb8dc1235.zip |
fix(render): remove added media class
This class is IMO not usefull as we already have the img selector to
select all the medias in the page (or we can even select img and a).
On the other hand, adding the class overrides the ones we can add with
markdown extra's syntax: {.custom-class}.
-rw-r--r-- | app/class/Modelrender.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/class/Modelrender.php b/app/class/Modelrender.php index 2e59da3..47c7d3c 100644 --- a/app/class/Modelrender.php +++ b/app/class/Modelrender.php @@ -359,7 +359,7 @@ class Modelrender extends Modelpage public function media(string $text): string { $regex = '%(src|href)="([\w\-]+(\/([\w\-])+)*\.[a-z0-9]{1,5})"%'; - $text = preg_replace($regex, '$1="' . Model::mediapath() . '$2" target="_blank" class="media"', $text); + $text = preg_replace($regex, '$1="' . Model::mediapath() . '$2" target="_blank"', $text); if (!is_string($text)) { //throw new Exception('Rendering error -> media module'); } |