Skip to content

Fix hyperlink rendering in package description #1418

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

Merged
merged 1 commit into from
Jul 24, 2025

Conversation

rhendric
Copy link
Contributor

The previous code rendered the contents of the hyperlink to a string of HTML before embedding it into the anchor element, which caused inner HTML elements to appear escaped in the final document. Embedding the contents directly without rendering them results in no escaping.

For a live example of the issue, see the ‘<code>TypeData</code>’ link in https://hackage.haskell.org/package/coerce-with-substitution.

The previous code rendered the contents of the hyperlink to a string of
HTML before embedding it into the anchor element, which caused inner
HTML elements to appear escaped in the final document. Embedding the
contents directly without rendering them results in no escaping.
@ysangkok ysangkok merged commit 4c37817 into haskell:master Jul 24, 2025
11 of 12 checks passed
@rhendric rhendric deleted the rhendric/markup-hyperlink-fix branch July 24, 2025 17:01
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.

2 participants