Fix doc website URL with duplicate slashes

This commit is contained in:
pagedown
2022-08-24 13:29:51 +08:00
parent ba9afc61a4
commit fd4a682c5b
2 changed files with 2 additions and 2 deletions

View File

@@ -109,7 +109,7 @@ def remove_markup(text: str) -> str:
return f'{t} <{url}>'
if m.group(1) == 'doc':
t, q = extract(m)
return f'{t} <{website_url(q.lstrip("/"))}>'
return f'{t} <{website_url(q)}>'
if m.group(1) in ('term', 'option'):
t, _ = extract(m)
return t