Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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

Package Overview
Dependencies
Maintainers
7
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

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

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
7
Created
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

Package last updated on 10 Aug 2022

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc