moinformat/links/html.py | raw changeset files shortlog |
1.1 --- a/moinformat/links/html.py Tue Aug 07 22:54:54 2018 +0200 1.2 +++ b/moinformat/links/html.py Sat Aug 11 21:44:44 2018 +0200 1.3 @@ -58,10 +58,10 @@ 1.4 1.5 target = target.rstrip("/") 1.6 1.7 - # Fragments. 1.8 + # Fragments. Remove the leading hash for the label. 1.9 1.10 if target.startswith("#"): 1.11 - return self.quote(target), None 1.12 + return self.quote(target), target.lstrip("#") 1.13 1.14 # Sub-pages. Remove the leading slash for the label. 1.15