We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b54340 commit 3f1bb3bCopy full SHA for 3f1bb3b
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