Skip to content

A few more tweaks based on feedback#1230

Draft
GBKS wants to merge 1 commit intomasterfrom
feature/markdown-negotation-tweaks-2
Draft

A few more tweaks based on feedback#1230
GBKS wants to merge 1 commit intomasterfrom
feature/markdown-negotation-tweaks-2

Conversation

@GBKS
Copy link
Copy Markdown
Contributor

@GBKS GBKS commented Apr 27, 2026

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)

@GBKS GBKS self-assigned this Apr 27, 2026
@GBKS GBKS added the Dev Development-focused tasks. label Apr 27, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 27, 2026

Deploy Preview for bitcoin-design-site ready!

Name Link
🔨 Latest commit 435ee71
🔍 Latest deploy log https://app.netlify.com/projects/bitcoin-design-site/deploys/69ef4053a87e33000897f12b
😎 Deploy Preview https://deploy-preview-1230--bitcoin-design-site.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 / .main selectors (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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dev Development-focused tasks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants