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
358 B
Markdown

---
date: 2026-04-07T07:45:00.027Z
repostOf: https://rmendes.net/reposts/2026/04/06/f3a5a/
category: on/tech
aiTextLevel: "0"
syndication:
- https://blog.giersig.eu/reposts/19cc2/
updated: 2026-04-07T07:46:31.971Z
mpUrl: https://blog.giersig.eu/reposts/19cc2/
permalink: /reposts/19cc2/
up: []
related: []
created: 2026-03-31 19:01
tags:
collection:
---