mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 02:21:15 +00:00
ClassRef: Replace [code]CurrentClass[/code] with [CurrentClass]
Modified makerst to generate code tags for these to avoid hyperlinks to the same class.
This commit is contained in:
parent
c8aa85189a
commit
d80bc5cbba
80 changed files with 261 additions and 257 deletions
|
|
@ -702,7 +702,11 @@ def rstize_text(text, state): # type: (str, State) -> str
|
|||
escape_post = False
|
||||
|
||||
if tag_text in state.classes:
|
||||
tag_text = make_type(tag_text, state)
|
||||
if tag_text == state.current_class:
|
||||
# We don't want references to the same class
|
||||
tag_text = '``{}``'.format(tag_text)
|
||||
else:
|
||||
tag_text = make_type(tag_text, state)
|
||||
escape_post = True
|
||||
else: # command
|
||||
cmd = tag_text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue