apply text styling to ul/ol

This commit is contained in:
Face
2025-07-30 15:34:28 +03:00
parent b7a73fe448
commit 49802fdcf6
3 changed files with 10 additions and 8 deletions

View File

@@ -66,8 +66,8 @@ static func apply_element_styles(node: Control, element: HTMLParser.HTMLElement,
return node
static func apply_styles_to_label(label: RichTextLabel, styles: Dictionary, element: HTMLParser.HTMLElement, parser) -> void:
var text = element.get_preserved_text() if element.tag_name == "pre" else element.get_bbcode_formatted_text(parser)
static func apply_styles_to_label(label: RichTextLabel, styles: Dictionary, element: HTMLParser.HTMLElement, parser, text_override: String = "") -> void:
var text = text_override if text_override != "" else (element.get_preserved_text() if element.tag_name == "pre" else element.get_bbcode_formatted_text(parser))
var font_size = 24 # default
# Apply font size