Skip to content

Fix hyperlink rendering in package description - #1418

Merged
ysangkok merged 1 commit into
haskell:masterfrom
rhendric:rhendric/markup-hyperlink-fix
Jul 24, 2025
Merged

Fix hyperlink rendering in package description#1418
ysangkok merged 1 commit into
haskell:masterfrom
rhendric:rhendric/markup-hyperlink-fix

Conversation

@rhendric

Copy link
Copy Markdown
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