From 6bdc514b94fb0127159c809e8f311cccc230d4ee Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 26 Nov 2021 00:51:53 +0100 Subject: [PATCH] issue: keep image formatting after edit --- upload.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/upload.inc.php b/upload.inc.php index f2e101a..962bedc 100644 --- a/upload.inc.php +++ b/upload.inc.php @@ -63,6 +63,7 @@ function messagehtml($input) '{<([^>\s|]+)[\s|]([^>]+)>}' => '$2', # hyperlink "/\r\n?/" => "\n", # unix newlines "/ +\n/" => "
", # trailing spaces for hard line break + '{^(/data/.*\.jpe?g)\z}m' => '', # image reference "/^[-*] (.*)$\n?/m" => '
  • $1
  • ', # list item "/^(.+)$\n?/m" => "

    $1

    \n", # paragraph "{^

    (

  • .*
  • )(?:

    \n)?}m" => "\n", # list container -- 2.30.0