npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

docpad-plugin-markit

v2.4.0

Published

Markdown rendering for Docpad, using Markdown it

Readme

Build Status

Markit Plugin for DocPad

This plugin will render files with the .md or .markdown extension using markdown-it.

Install

docpad install markit

Configure

For information on customising your plugin configuration you can refer to the DocPad FAQ

Markit Options

The Markit plugin supports all the options supported by the markdown-it project except highlight. By default the following configuration is used:

breaks         : false        // Convert '\n' in paragraphs into <br>

html           : false        // Enable HTML tags in source

langPrefix     : 'language-'  // CSS language prefix for fenced blocks. Can be
                              // useful for external highlighters.

linkify        : false        // Autoconvert URL-like text to links

quotes         : '“”‘’'       // Double + single quotes replacement pairs, when
                              // typographer enabled, and smartquotes on.
							  // Could be either a String or an Array.

typographer    : false        // Enable some language-neutral replacement +
                              // quotes beautification

xhtmlOut       : false        // Use '/' to close single tags (<br />).
                              // This is only for full CommonMark compatibility.

In addition there are some Markit custom options. These are the default configurations for these options:

highlighterWrapper : null     // When useHighlighter is true this option can be
                              // used to specify a custom wrapper to be used by
                              // highlighter. Make sure the custom wrapper
                              // contains the string '{{code}}', this is where
                              // the result from highlighter.js will be inserted

plugins            : []       // Array of strings, each entry should be a
                              // markdown-it plugin in

useHighlighter     : false    // When 'true' markdown-it will use highlight.js
                              // for code blocks

Using markdown-it Plugins

If you want to use markdown-it plugins you can do this by installing the package in your project and overwriting the plugins configuration option.

Plugin options are specified as configuration options using the plugin name with any dashes (-) converted to underscores (_).

Example

Say you want to use footnotes, markdown-it has a plugin for this. To enable this plugin you will first have to install the package. You can do this by running the following command from your project folder:

npm install --save-dev markdown-it-footnote

Now that the package is installed you need to let Markit know about the plugin. To do this you need to alter the plugin section of the docpad.coffee file.

docpadConfig:
	<whatever else is in your config>
	plugins:
		<the other plugins you need to configure>
		markit:
			plugins: ['markdown-it-footnote']
            markdown_it_footnote: {...}

Credits

This project was based on the Docpad plugin example project.

License

This project is MIT licensed.