We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6307f01 commit 8239aefCopy full SHA for 8239aef
tldr.py
@@ -477,6 +477,8 @@ def emphasise_example(x: str) -> str:
477
# Handle escaped placeholders first
478
line = line.replace(r'\{\{', '__ESCAPED_OPEN__')
479
line = line.replace(r'\}\}', '__ESCAPED_CLOSE__')
480
+
481
+ # Extract long or short options from placeholders
482
if not (shortform and longform):
483
if shortform:
484
line = re.sub(r'{{(-.)\|--.+?}}', r'{{\1}}', line)
0 commit comments