Skip to content

Commit

Permalink
Remove the relative path in the link description from issue to wiki (#21
Browse files Browse the repository at this point in the history
)

Signed-off-by: Benoit Donneaux <[email protected]>
  • Loading branch information
btlogy authored Jun 17, 2024
1 parent 1cee8d3 commit 563125e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions markdown/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,10 @@ func (converter *DefaultConverter) resolveWikiCamelCaseLink(path string, link st
} else {
suffix = "#" + wikiPageAnchor
}
// add accompagnying comment if there is not one already
if leadingChar != "]" {
return leadingChar + "[" + translatedPageName + suffix + "]" + markLink(path + translatedPageName + suffix)
}
return leadingChar + markLink(path + translatedPageName + suffix)
}

Expand Down

0 comments on commit 563125e

Please sign in to comment.