mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-24 12:49:03 -05:00
fix: no empty code span for a bare data directory
This commit is contained in:
1 parent
866cfff4ac
commit
00bb4aa0ba
1 file changed
+3
-1
@@ -8966,7 +8966,9 @@ def emulator_pages(
|
||||
ref = dd.get("ref", "")
|
||||
dest = dd.get("destination", "")
|
||||
entry = (data_registry or {}).get(ref, {})
|
||||
line = f"- `{ref}` > `{dest}`"
|
||||
# An empty destination wrote "``", which opened a code span
|
||||
# running to the next one and hid a link from the MDX pass.
|
||||
line = f"- `{ref}` > `{dest}`" if dest else f"- `{ref}`"
|
||||
if entry.get("description"):
|
||||
line += f": {entry['description']}"
|
||||
lines.append(line)
|
||||
|
||||
Reference in new issue
Block a user