Skip to content

Conversation

Hector-Zhuang
Copy link
Contributor

Description:

This PR addresses two issues related to <video> elements in the editor:

Video parsed as an image

Previously, <video> elements were being processed by the image handler in remarkRehype, causing videos to be treated as images.

Video exported as a link in Markdown

When exporting content containing videos to Markdown, the videos were incorrectly serialized as standard link Markdown:

Fixes implemented:

Updated the image handler to detect videos by extension (mp4, webm, etc.) and process them as <video> elements with the correct attributes: src, data-url, data-name and so on.

Added a convertVideoElementToMarkdown plugin to transform <video> elements into a dedicated video markdown with url and title.

#1938

Copy link

vercel bot commented Aug 22, 2025

@Hector-Zhuang is attempting to deploy a commit to the TypeCell Team on Vercel.

A member of the Team first needs to authorize it.

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