Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not add icon link for headers with another link inside #664

Merged
merged 1 commit into from
May 21, 2024

Conversation

federicobucchi
Copy link
Member

@federicobucchi federicobucchi commented May 18, 2024

Motivation:

Some H3 have a link already placed after the text. This cause an issue with trying to add the permalink icon/link

Screenshot 2024-05-18 at 10 16 47 AM

Modifications:

Modified converter-header.rb to only add the permalink icon to headers without another link added inside it

Result:

Screenshot 2024-05-18 at 11 06 46 AM

@federicobucchi
Copy link
Member Author

@swift-ci please test

@federicobucchi federicobucchi force-pushed the fb/fix-anchors-with-already-a-link branch from 37d15ed to e9edbc8 Compare May 18, 2024 21:28
@federicobucchi federicobucchi changed the title do not add icon link for headers > of 3 Do not add icon link for headers with another link inside May 18, 2024
@federicobucchi
Copy link
Member Author

@swift-ci please test

@federicobucchi federicobucchi merged commit f2fe939 into main May 21, 2024
1 check passed
@federicobucchi federicobucchi deleted the fb/fix-anchors-with-already-a-link branch May 21, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants