swift-unidoc icon indicating copy to clipboard operation
swift-unidoc copied to clipboard

Cannot resolve roundabout anchor links to current decl page

Open tayloraswift opened this issue 1 year ago • 0 comments

right now, only certain syntaxes of anchor links are supported, depending on the page type.

syntax on decl page? in standalone article?
doc:#Some-heading supported supported
doc:ThisPage#Some-heading not supported! supported
doc:OtherArticle#Some-heading supported supported
doc:OtherDeclaration#Some-heading not supported! not supported!

the basic limitation is that we do not have the ability to resolve fragment links that target a heading on a declaration page, unless it is spelled without any path components. (in which case, the resolver already knows the target page.)

tayloraswift avatar Apr 26 '24 21:04 tayloraswift