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")