summaryrefslogtreecommitdiffstats
path: root/doc/tools/make_rst.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/tools/make_rst.py')
-rwxr-xr-xdoc/tools/make_rst.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py
index 4e735039f7..f711038fdf 100755
--- a/doc/tools/make_rst.py
+++ b/doc/tools/make_rst.py
@@ -1737,7 +1737,7 @@ def make_rst_index(grouped_classes: Dict[str, List[str]], dry_run: bool, output_
# Formatting helpers.
-RESERVED_FORMATTING_TAGS = ["i", "b", "u", "code", "kbd", "center", "url", "br"]
+RESERVED_FORMATTING_TAGS = ["i", "b", "u", "lb", "rb", "code", "kbd", "center", "url", "br"]
RESERVED_LAYOUT_TAGS = ["codeblocks"]
RESERVED_CODEBLOCK_TAGS = ["codeblock", "gdscript", "csharp"]
RESERVED_CROSSLINK_TAGS = [
@@ -2311,6 +2311,12 @@ def format_text_block(
escape_pre = True
tag_text = ""
+ elif tag_state.name == "lb":
+ tag_text = "\\["
+
+ elif tag_state.name == "rb":
+ tag_text = "\\]"
+
elif tag_state.name == "kbd":
tag_text = "`"
if tag_state.closing: