Add support for [ul]
tags in documentation
#67037
Open
+601
−370
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Previously, unordered lists were only rendering properly in RST format (RST defines them as any line starting with
-
or*
or+
). In Godot's documentation viewer and rich tooltips, they showed up as plain text.This PR adds support for the
[ul]
tag in documentation, which is how unordered lists are declared in RichTextLabel:Of course, RST support had to be added back as well, by converting
[ul]
tags back to old syntax.The alternative solution would be to keep old syntax, and to convert it to
[ul]
lists forEditorHelp
, as is done in #88900In a second commit, the new tag is used everywhere in the class docs. I'll resolve conflicts once code review is done.
I don't have the RST -> HTML build setup, so I can't verify the result of the following edge case in the conversion:
where each line ends with
<backslash><space>
.