Don't adjust relative links starting with #.

This commit is contained in:
Ethan Dalool 2020-07-29 11:05:45 -07:00
parent 3fa67f8353
commit 2667a45384

View file

@ -134,6 +134,8 @@ def soup_adjust_relative_links(soup, md_file, repo_path):
continue
if href.startswith('/'):
continue
if href.startswith('#'):
continue
href = folder.join(href)
href = '/' + href.relative_to(writing_rootdir.parent, simple=True)
if not href.startswith('/writing/'):