New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-remark-slidify

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-remark-slidify

Gatsby Remark Transformer Plugin for creating reveal.js slides

0.0.2
latest
npm
Version published
Maintainers
1
Created
Source

gatsby-remark-slidify

This is a plugin for gatsby-transformer-remark, which is in turn a plugin for GatsbyJS.

This plugin mutates the markdown of files with a specified frontmatter key (default reveal) to allow them to be used with reveal.js, the HTML presentation framework.

When using this plugin you'll be using Gatsby's Markdown engine, remark, instead of the one provided by reveal.js, marked.

Installation

# npm:
npm install gatsby-remark-slidify
# or yarn:
yarn add gatsby-remark-slidify

Usage:

If you haven't already installed gatsby-transformer-remark, you should install it.

Then in your gatsby-config.js, add this plugin to the list of plugins for gatsby-transformer-remark.

module.exports = {
  // other configs ...
  plugins: [
    {
      resolve: `gatsby-transformer-remark`,
      options: {
        plugins: [
          {
            resolve: 'gatsby-remark-slidify',
            options: {
              key: 'reveal',
              revealOptions: {
                transition: "fade"
              }
            }
          },
          // ... other plugins ...
        ]
      }
    }
  ]
}

At this point you should be able to create a markdown slide such as

---
reveal: true
---

# Hello World
## This is my First Slide

Note:
These are the notes for my slide and won't show up during presentation.

---

# Hello Reveal.js
## This is my Second Slide

+++

This is a vertical slide that occurs below the `Hello Reveal.js` slide.

Configuration

This plugin merges the plugin option revealOptions as well as the reveal frontmatter key and should pass them to the reveal.js constructor.

License

MIT License

Copyright (c) 2020 James Ward

FAQs

Package last updated on 14 Feb 2020

Did you know?

Socket

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