Files
svemagie 819aab1883
Build & Deploy / build-and-deploy (push) Failing after 1m3s
fix: prevent microformat links from being converted to YouTube embeds
YouTube repost/like/bookmark cards were showing the video thumbnail
twice: once from the unfurl card and once from the u-repost-of anchor
tag being matched by the youtube-link-to-embed transform.

Add a negative lookahead (?![^>]*\bclass=) to the transform regex so
that <a> tags with a class attribute are skipped. Microformat links
(u-repost-of, u-like-of, u-bookmark-of) and unfurl fallback links
always carry classes; bare YouTube URLs in Markdown content do not.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-11 17:42:13 +02:00

13 lines
259 B
Markdown

---
date: 2026-03-18T16:18:18.492Z
likeOf: https://www.joanwestenberg.com/the-optimized-self-and-the-life-that-got-away/
mpUrl: https://blog.giersig.eu/likes/7f03f/
permalink: /likes/7f03f/
up: []
related: []
created: 2026-03-31 19:01
tags:
collection:
---