Fix raw markdown links showing in HTML-block page descriptions#37
Merged
Conversation
Markdown-it does not process inline markdown syntax (like [text](url)) inside HTML blocks (div, p, li elements). Files where the description content was wrapped in a <div> had their link text appearing as raw markdown in the output. Convert [text](url) to <a href="url">text</a> on all lines containing HTML tags, affecting 11 location pages. Markdown-context links (plain paragraphs, list items with no surrounding HTML) are left unchanged and continue to be processed by markdown-it as before. https://claude.ai/code/session_011n6JGkmsXKhoZ3MhKWB9Xz
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
[text](url)) inside HTML blocks — when a<div>,<li>, or<p>element opens an HTML block, its contents are passed through verbatimdescriptionwrapped in<div class="dissapointment12">, so all markdown links inside rendered as raw text (e.g.[Wedding Marquee Hire](https://...))[text](url)occurrences to<a href="url">text</a>HTML anchors; markdown-context links (plain paragraphs,- []()list items with no surrounding HTML tags on the same line) are left unchangedFiles changed
fareham,oxshott,godalming,basingstoke,camberley,bournemouth,epsom,reading,crawley,dorking,aldershot(11 location pages)Test plan
/Complete-Marquees/fareham/— confirm links in the "Perfect for" list render as clickable anchors, not raw[text](url)texthttps://claude.ai/code/session_011n6JGkmsXKhoZ3MhKWB9Xz
Generated by Claude Code