Skip to content

Fix: video parsing and Markdown export issues #1955

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant