Socket
Socket
Sign inDemoInstall

@pga/gatsby-plugin-markdown-to-html

Package Overview
Dependencies
0
Maintainers
7
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @pga/gatsby-plugin-markdown-to-html

Gatsby plugin to convert markdown files into html pages


Version published
Weekly downloads
5
increased by150%
Maintainers
7
Install size
7.65 kB
Created
Weekly downloads
 

Readme

Source

gatsby-plugin-markdown-to-html

Gatsby plugin to convert markdown files into html pages

Install

npm install --save gatsby-plugin-markdown-to-html

Usage

In gatsby-config.js:

plugins: [
  'gatsby-plugin-markdown-to-html',
]

Example markdown page in ./src/pages/contact-us.md:

---
title: Contact Us
layout: some-layout
---

This plugin will create a page at /contact-us/ and use the ./src/layouts/some-layout.js component as the template.

A default layout can be specified in case the markdown file does not contain a layout value:

plugins: [
   {
      resolve: 'gatsby-plugin-markdown-to-html',
      options: {
         path: '../__pages', // Path to markdown files to be converted to pages
         templatePath: './src/layouts', // Path to page templates
         template: 'default', // Default template to use if none is supplied
      }
   }
]

FAQs

Last updated on 10 Aug 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