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

21 lines
408 B
Markdown

---
date: 2026-04-09T13:35:28.780Z
repostOf: https://leehanchung.github.io/blogs/2026/04/05/the-ai-great-leap-forward/
category:
- on/ai
- on/tech
- dev
aiTextLevel: "0"
syndication:
- https://blog.giersig.eu/reposts/f616a/
updated: 2026-04-09T13:38:05.111Z
mpUrl: https://blog.giersig.eu/reposts/f616a/
permalink: /reposts/f616a/
up: []
related: []
created: 2026-03-31 19:01
tags:
collection:
---