I prefer middledot to grave to mark local links

This commit is contained in:
Kovid Goyal 2024-09-25 16:25:27 +05:30
parent f08750b33c
commit d5b0507998
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1877,7 +1877,7 @@ class BasicNewsRecipe(Recipe):
arelpath = sorted(articles, key=numeric_sort_key)[0]
a.set('href', item.relhref(arelpath))
if a.text and len(a) == 0:
a.text = a.text + '`'
a.text = a.text + '·' # mark as local link
if url not in seen:
log.debug(f'Resolved internal URL: {url} -> {arelpath}')
seen.add(url)