Skip to content

Fix raw markdown links showing in HTML-block page descriptions#37

Merged
stefan-burke merged 1 commit into
mainfrom
claude/fix-markdown-rendering-YFHKT
May 11, 2026
Merged

Fix raw markdown links showing in HTML-block page descriptions#37
stefan-burke merged 1 commit into
mainfrom
claude/fix-markdown-rendering-YFHKT

Conversation

@stefan-burke
Copy link
Copy Markdown
Member

Summary

  • markdown-it does not process inline markdown syntax (e.g. [text](url)) inside HTML blocks — when a <div>, <li>, or <p> element opens an HTML block, its contents are passed through verbatim
  • 11 location pages had their entire description wrapped in <div class="dissapointment12">, so all markdown links inside rendered as raw text (e.g. [Wedding Marquee Hire](https://...))
  • Convert those [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 unchanged

Files changed

fareham, oxshott, godalming, basingstoke, camberley, bournemouth, epsom, reading, crawley, dorking, aldershot (11 location pages)

Test plan

  • Build the site and visit /Complete-Marquees/fareham/ — confirm links in the "Perfect for" list render as clickable anchors, not raw [text](url) text
  • Spot-check a few other fixed pages (oxshott, godalming, basingstoke)
  • Confirm pages that use markdown-context links (guildford, leatherhead, southampton, portsmouth) still render correctly

https://claude.ai/code/session_011n6JGkmsXKhoZ3MhKWB9Xz


Generated by Claude Code

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
@stefan-burke stefan-burke merged commit 5db2362 into main May 11, 2026
3 checks 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