Skip to content

miller-productions/gatsby-remark-audio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gatsby-remark-audio

This is a Gatsby remark plugin that creates HTML5 audio tags from local or remote audio sources.

Installation

npm install gatsby-remark-audio

Usage

In your markdown:

`audio: /static/test.mp3`

`audio: https://www.mytestaudiosource.com/test.mp3`

Add the following in your gatsby-config.js (must be included under the plugins key on gatsby-transformer-remark)

{
  resolve: `gatsby-transformer-remark`,
  options: {
    plugins: [
      {
        resolve: 'gatsby-remark-audio',
        options: {
          preload: 'auto',
          loop: false,
          controls: true,
          muted: false,
          autoplay: false
        }
      },
    ...skipped lines
    ]
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%