From 00000b28b83f6b64c42c225973a8a4ecf1a87fd6 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Fri, 19 Jan 2024 15:15:00 +0000
Subject: [PATCH] fixes #3653

Closes #3653

Merge request studip/studip!2533
---
 lib/classes/Markup.class.php | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/lib/classes/Markup.class.php b/lib/classes/Markup.class.php
index a56d15a802a..da040fa7aad 100644
--- a/lib/classes/Markup.class.php
+++ b/lib/classes/Markup.class.php
@@ -298,13 +298,13 @@ class Markup
             i
             img[alt|src|height|width|class|style]
             li
-            ol
+            ol[reversed|start|style]
             p[style]
             pre[class]
             span[style|class]
             strong
             u
-            ul
+            ul[style]
             s
             small
             sub
@@ -402,6 +402,10 @@ class Markup
         $def->addElement('figcaption', 'Inline', 'Flow', 'Common');
         $def->addElement('figure', 'Block', 'Optional: (figcaption, Flow) | (Flow, figcaption) | Flow', 'Common');
 
+        $def->addAttribute('ol', 'reversed', 'Bool');
+        $def->addAttribute('ol', 'style', 'Text');
+        $def->addAttribute('ul', 'style', 'Text');
+
         return new \HTMLPurifier($config);
     }
 
-- 
GitLab