jsdoc-to-markdown icon indicating copy to clipboard operation
jsdoc-to-markdown copied to clipboard

Html anchors for extended methods seems broken

Open thomaslund opened this issue 10 years ago • 1 comments

It seems like there is an issue with linking of methods from extended classes. Looking at your example, FurQ extends Rapper. Rapper has two methods .spit() and .battle(). If i click on Rapper.battle(), it links to FurQ.battle() which is not expected. I expect this to take me to the correct Rapper.battle() documentation.

Looking at the source it seems that FurQ @extends Rapper generates <a name="user-content-Rapper+battle"></a> for FurQ.battle(). This will make every extend of Rappers methods link to the first occurrence of <a name="user-content-Rapper+battle"></a> in the document. In this case FurQ.

I would expect FurQ @extends Rapper to output <a name="user-content-FurQ+battle"></a> so it doesn't break linking for every @extends of Rapper.

thomaslund avatar Oct 14 '15 13:10 thomaslund

confirmed, thanks..

75lb avatar Oct 14 '15 15:10 75lb