Don't adjust relative links starting with #.

master
Ethan Dalool 2020-07-29 11:05:45 -07:00
parent 3fa67f8353
commit 2667a45384
1 changed files with 2 additions and 0 deletions

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/'):