We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6b54340 + 3f1bb3b commit 8ef5467Copy full SHA for 8ef5467
1 file changed
main.py
@@ -44,7 +44,7 @@ def remove_url_accents(text : str) -> str:
44
Cause the headings get the id without the accents
45
'''
46
47
- pattern = r'\[(.*)\]\((.*)\)'
+ pattern = r'\[(.*)\]\((.*?)\)'
48
return re.sub(pattern, lambda m: f'[{m.group(1)}]({unidecode(m.group(2))})', text)
49
50
0 commit comments