From d66734766fa518583a34ea7c8c949293cb2ab380 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 26 Feb 2024 03:03:39 +0200 Subject: [PATCH] escape code chars in raw line --- src/Dokuwiki/Reader.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Dokuwiki/Reader.php b/src/Dokuwiki/Reader.php index 4599841..ea68dbf 100644 --- a/src/Dokuwiki/Reader.php +++ b/src/Dokuwiki/Reader.php @@ -235,7 +235,11 @@ class Reader if ($raw) { - $lines[] = $line; + $lines[] = preg_replace( + '/^\s*```/', + ' ```', + $line + ); continue; }