question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

embed video in markdown with vitepress

See original GitHub issue

Is your feature request related to a problem? Please describe.

I’ve embed a video in my markdown by search the help of Typora. It works fine in Typora. It is like this in my markdown:

<video controls="controls" src="在家办公指南.assets\Video_2020-02-23_230241.mp4" />

It works fine with the localhost via the command yarn docs:dev but when yarn docs:build, I got an error. How can I do?

Describe the solution you’d like

Support the video control.

I set up the site in LAN and won’t expose to the WAN, the storage is no problem.

Describe alternatives you’ve considered

No response

Additional context

No response

Validations

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
arcqiufengcommented, Oct 13, 2022

Thank you for reply me, I will try the ./ later. However, I don’t want to place the video to public dir because I hope the attachment of the markdown will be in the same place with md file.

0reactions
arcqiufengcommented, Oct 14, 2022

Can you try using relative path to your video file like this:

../在家办公指南.assets/Video_2020-02-23_230241.mp4

Now it’s work fine with this:

./在家办公指南.assets/Video_2020-02-23_230241.mp4

Thank you for your help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Embedded HTML5 Video from Markdown Image Link ... - GitHub
Optional image link video suffix detection and HTML5 video embedding with markdown-it-html5-embed. What problem does this feature solve? It ...
Read more >
Markdown Extensions - VitePress
VitePress comes with built in Markdown Extensions. Header Anchors #. Headers automatically get anchor links applied. Rendering of anchors can be ...
Read more >
Vuepress: How to embed video in markdown - Hanxue and IT
When I was updating the Wujiquan website, I wanted to embed videos into the content. While it is possible to add html tags...
Read more >
Write Beautiful Documentation Quickly with VitePress
In our markdown files, we have three ways of linking to routes. We can either use the base url, add .md or .html...
Read more >
Is there anyway to embed javascript into vitepress markdown ...
Is there a way to embed a script from external src as well as local script into vitepress markdown for it to be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found