@e11ty/eleventy-plugin-markdown
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

@e11ty/eleventy-plugin-markdown

An Eleventy plugin wrapped around markdown-it which exposed some basic logic used in the static sites I build leveraging 11ty.

Install

The module requires @11ty/eleventy be installed along side it.

pnpm add @e11ty/eleventy-plugin-markdown -D

The @11ty/eleventy module is a peer. You need to install it.

Usage

The module includes markdown-it and papyrus in the build, it also has built in fenced containers for some custom structures within markdown. Optionally use with 11ty.ts wrapper for type completions.

const { defineConfig } = require('11ty.ts'); // Optional
const { markdown } = require('@e11ty/eleventy-plugin-markdown');

module.exports = defineConfig(eleventyConfig => {

  markdown(eleventyConfig, {
    papyrus: {
      default: { /* Papyrus Syntax Defaults*/ },
      language: {
        liquid: { /* Papyrus Liquid Code Blocks */ },
      }
    },
    options: { /* options for markdown-it */ }
  })

});

License

Apache 2.0

Readme

Keywords

none

Package Sidebar

Install

npm i @e11ty/eleventy-plugin-markdown

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

44.3 kB

Total Files

6

Last publish

Collaborators

  • sissel