Skip to content

fix: normalize blog markdown imports and YouTube embeds#4527

Merged
ComputelessComputer merged 3 commits intomainfrom
c-branch-7
Mar 12, 2026
Merged

fix: normalize blog markdown imports and YouTube embeds#4527
ComputelessComputer merged 3 commits intomainfrom
c-branch-7

Conversation

@ComputelessComputer
Copy link
Collaborator

@ComputelessComputer ComputelessComputer commented Mar 11, 2026

Teach the shared blog clip node to parse and round-trip saved blocks, YouTube iframes, and pasted embed snippets through a normalized embed URL.

Update Google Docs import to use the blog markdown serializer so underlined links stop turning into ++...++ and imported YouTube iframes become clip nodes.

Add focused clip markdown tests for URL normalization, iframe parsing, Clip block parsing, and serialization coverage.


This is part 3 of 3 in a stack made with GitButler:

Read the current TipTap document from the file editor before save and publish so recent edits are not lost behind the debounced editor state. Also sync media-library image inserts into local editor state immediately so dirty tracking and preview stay current.
Disable caching for the draft list on both the client fetch and API response. Use the server-returned draft path and branch when updating the query cache, then refetch active draft queries to reconcile state so new posts appear immediately without a manual page refresh.
Teach the shared blog clip node to parse and round-trip saved <Clip> blocks, YouTube iframes, and pasted embed snippets through a normalized embed URL.

Update Google Docs import to use the blog markdown serializer so underlined links stop turning into ++...++ and imported YouTube iframes become clip nodes.

Add focused clip markdown tests for URL normalization, iframe parsing, Clip block parsing, and serialization coverage.
Base automatically changed from c-branch-6 to main March 12, 2026 01:55
@ComputelessComputer ComputelessComputer merged commit 9f9acd9 into main Mar 12, 2026
2 of 3 checks passed
@ComputelessComputer ComputelessComputer deleted the c-branch-7 branch March 12, 2026 01:55
jack-jackhui pushed a commit to jack-jackhui/char that referenced this pull request Mar 15, 2026
* fix: save live content admin editor state

Read the current TipTap document from the file editor before save and publish so recent edits are not lost behind the debounced editor state. Also sync media-library image inserts into local editor state immediately so dirty tracking and preview stay current.

* fix: refresh content admin drafts after post creation

Disable caching for the draft list on both the client fetch and API response. Use the server-returned draft path and branch when updating the query cache, then refetch active draft queries to reconcile state so new posts appear immediately without a manual page refresh.

* fix: normalize blog markdown imports and YouTube embeds

Teach the shared blog clip node to parse and round-trip saved <Clip> blocks, YouTube iframes, and pasted embed snippets through a normalized embed URL.

Update Google Docs import to use the blog markdown serializer so underlined links stop turning into ++...++ and imported YouTube iframes become clip nodes.

Add focused clip markdown tests for URL normalization, iframe parsing, Clip block parsing, and serialization coverage.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant