Skip to content

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