careerly2008 / video-to-markdown

How to embed a video in markdown? Here the answer. Add videos to your markdown files easier.

Home Page:https://video-to-markdown.netlify.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Video to Markdown

Build Status Beerpay Beerpay PayPal.me

Netlify Status

Add videos to your markdown files easier - https://video-to-markdown.netlify.com.

Why?

How often did you find yourself googling ¨How to embed a video in markdown?¨

While its not possible to embed a video in markdown, the best and easiest way is to extract a frame from the video, add a layer with a play icon and link the video url on the image.

Speaking HTMLese, this is what you would do:

<a href="{video-url}" title="Link Title"><img src="{image-url}" alt="Alternate Text" /></a>

that translates into markdown as:

[![Alternate Text]({image-url})]({video-url} "Link Title")

To speed up the process I developped this tool that will do it for you.

You just need to paste the video url in the field above and you will get the markdown you need.

Features

List of supported video providers:

  • Youtube
  • Facebook (low-quality)
  • Dailymotion
  • Vimeo
  • Asciinema
  • Google Drive

Hosting

If you want your own copy, just

Deploy to Netlify

Development stuff

To run the project locally, here’s what you’ll need:

System Requirements

Setup

cd into your local copy of the repository and run npm install

cd video-to-markdown
npm install
npm start

This will start the client server on http://localhost:8080, and the netlify-lambda server on http://localhost:8081.

netlify-lambda isn’t required to deploy Lambda functions to Netlify, but it offers some handy features out of the box that make it quicker to get started, like the local dev server and nice defaults for transpiling and bundling functions in production.

The client server is configured to proxy /.netlify requests to the Lambda server (see webpack.client.js). This is the same behavior the site has when it’s deployed to Netlify.

Privacy

Google Analytics is used to record the following:

By clicking on convert to markdown or consuming api you accept this terms & condition; no additional data is sent to the server.

About

How to embed a video in markdown? Here the answer. Add videos to your markdown files easier.

https://video-to-markdown.netlify.com

License:MIT License


Languages

Language:JavaScript 56.4%Language:HTML 22.1%Language:CSS 21.5%