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

fix: prevent double anchoring #266

Merged
merged 1 commit into from
Feb 4, 2025
Merged

fix: prevent double anchoring #266

merged 1 commit into from
Feb 4, 2025

Conversation

kmill
Copy link
Contributor

@kmill kmill commented Feb 4, 2025

Fixes a bug caused by a bug in leanprover/lean4#6730 that causes infoFormatToHtml to add nested anchor tags, with many of the outer links being unwanted. This PR modifies infoFormatToHtml to avoid wrapping HTML in anchor tags if the HTML already contains one.

This is an improvement on its own, but we will also address the root cause in a Lean PR.

Fixes a bug caused by a bug in leanprover/lean4#6730 that causes `infoFormatToHtml` to add nested anchor tags, with many of the outer links being unwanted. This PR modifies `infoFormatToHtml` to avoid wrapping HTML in anchor tags if the HTML already contains one.

This is an improvement on its own, but we will also address the root cause in a Lean PR.
@hargoniX hargoniX merged commit e3f8a87 into main Feb 4, 2025
1 check passed
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