fomantic / Fomantic-UI-Docs

Official Documentation for Fomantic-UI
https://fomantic-ui.com
28 stars 85 forks source link

fix(chore): dont linkify existing links in headers #466

Closed lubber-de closed 1 year ago

lubber-de commented 1 year ago

Description

In case a Heading inside examples already got a link, the automatic anchor link wrapper would eliminate the functionality of the existing link. This happens on the homepage examples where the Headings are supposed to link to the related component website but instead a click on them does nothing as the wrapped anchor link prevents that. So, the linkify anchor generation should only happen when the heading does not already contain a link, which this PR fixes