From 95345fc50bcd4837726b6aff4786dd23ae6980cd Mon Sep 17 00:00:00 2001
From: Mario Steele
Date: Fri, 6 Mar 2026 21:20:45 -0600
Subject: [PATCH] Update Util
Updated Util convert_html_to_bbcode() to fix p tags.
---
lib/util.gd | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/util.gd b/lib/util.gd
index f33c5f11..335e9409 100644
--- a/lib/util.gd
+++ b/lib/util.gd
@@ -41,10 +41,14 @@ static func convert_html_to_bbcode(html: String) -> String:
# NOTE: Replace
with [img]...[/img]
bb = _img_re.sub(bb, "[img]$1[/img]", true)
- # NOTE: Remove tags, convert
to newline
+ # NOTE: Replace ...
tags, with [b]...[/b]
bb = _h2_open_re.sub(bb, "[b]", true)
bb = bb.replace("", "[/b]\n")
+ # NOTE: Remove tags, convert
to new line
+ bb = _p_open_re.sub(bb, "", true)
+ bb = bb.replace("
", "\n")
+
# NOTE: List Items: -> •, -> newline
bb = bb.replace("", "• ")
bb = bb.replace("", "\n")