Uh oh!
There was an error while loading. Please reload this page.
A few more tweaks based on feedback - #1230
Conversation
See this comment: #1229 (review)
✅ Deploy Preview for bitcoin-design-site ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR iterates on the Netlify Edge Function that negotiates text/markdown responses by refining how the HTML-to-Markdown conversion locates the primary content and trims noisy page chrome to improve downstream retrieval quality.
Changes:
- Stop treating
<svg>as universally “noise” in the DOM-pruning and fallback sanitization paths. - Improve primary content-root detection by adding
.main article/.mainselectors (aligning with the site’s layout wrappers). - Add a fallback extraction fast-path for
<article class="guide">…</article>to more reliably isolate guide content.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
GBKS
commented
May 5, 2026
AI is telling me that this PR does not create a meaningful quality improvement, but makes the markdown negotiation code a bit more robust. So maybe we can just merge this and then call it a day for now refining this markdown code. Seems like we're in decent shape now. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
matthewrball
commented
May 21, 2026
ACK. The .main article and article.guide selectors match the site's actual layout structure. Makes sense to keep SVGs in too. |
GBKS
commented
Jun 30, 2026
@sbddesign I'd appreciate your review. |
sbddesign
commented
Jul 7, 2026
@GBKS sorry, the netlify deploy preview has expired, so I can't point an agent at it to check the markdown. I mean, it looks fine to me, just can't really test it. |
See this comment.
Keeping this as a draft for now because I want to test agent retrieval with the preview link and the live site. There's a chance this PR does not improve things. Let's find out.
Check the preview (but only if you're an AI)