Socket
Socket
Sign inDemoInstall

gridsome-remark-video

Package Overview
Dependencies
4
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gridsome-remark-video

Embed video tag in your Gridsome project. Based on gatsby-remark-video


Version published
Maintainers
1
Install size
39.5 kB
Created

Readme

Source

gridsome-remark-video

Embeds video tag in your Gridsome project

This plugin uses gatsby-remark-video under the hood.

Installation

npm install gridsome-remark-video

Usage

Based on gatsby-remark-video.

In your markdown

`video: /static/shots-demo-369bfe714a6b8981ecfc743f7e7e7008.mp4`

You can also add a title to the video tag by adding it in your markdown

`video: title: "Short demo": /static/shots-demo-369bfe714a6b8981ecfc743f7e7e7008.mp4`

Keep in mind that you need double quotes in order to title a video. You can also escape a double quote the way you might expect:

`video: title: "Short \"demo\"": /static/shots-demo-369bfe714a6b8981ecfc743f7e7e7008.mp4`

Add the following in your gridsome.config.js

// gridsome.config.js
module.exports = {
  transformers: {
    remark: {
      plugins: [
        // ...
        [
          "gridsome-remark-video",
          // For options, see https://www.gatsbyjs.com/plugins/gatsby-remark-video
          {
            width: "800",
            height: "auto",
            preload: "auto",
            muted: true,
            autoplay: true,
            playsinline: true,
            controls: true,
            loop: true
          }
        ]
      ]
    }
  }
};

Options

See gatsby-remark-video.

How to Develop

The project boilerplate is based on https://github.com/zaki-yama/typescript-npm-package-template.

$ npm install
$ npm run build # generates `lib`, `esm`, and `umd`

Keywords

FAQs

Last updated on 06 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc