Don't adjust relative links starting with #.
This commit is contained in:
parent
3fa67f8353
commit
2667a45384
1 changed files with 2 additions and 0 deletions
|
@ -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/'):
|
||||
|
|
Loading…
Reference in a new issue