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

18 lines
357 B
Markdown

---
date: 2026-04-08T08:05:55.564Z
repostOf: https://crocodylus.blog/2026/04/08/lise/
category: on/politics
aiTextLevel: "0"
syndication:
- https://blog.giersig.eu/reposts/585f1/
updated: 2026-04-08T08:07:31.214Z
mpUrl: https://blog.giersig.eu/reposts/585f1/
permalink: /reposts/585f1/
up: []
related: []
created: 2026-03-31 19:01
tags:
collection:
---