Skip to content
This repository has been archived by the owner on Jan 7, 2024. It is now read-only.

Wintersmith plugin that renders markdown using pagedown with gfm extras.

Notifications You must be signed in to change notification settings

torque/wintersmith-pagedownextra

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wintersmith-pagedownextra

pagedown with extras plugin for wintersmith. Desirable for gfm parity with editors such as stackedit.io

install:

npm install "torque/wintersmith-pagedownextra"

then add ./node_modules/wintersmith-pagedownextra/ to your config.json

"plugins": [
  "./node_modules/wintersmith-pagedownextra/"
]

If you want to specify the extensions for pagedownExtra to use site- wide, add something like the following to your config.json:

"pagedownextra": {
	"extensions": ["fenced_code_gfm", "tables", "def_list", "attr_list", "footnotes", "smartypants", "strikethrough"],
	"addLineNumbers": true
}

The addLineNumbers option will add line numbers to code blocks with a specified language syntax. However, they require separate CSS to be displayed properly, and thus the feature is disabled by default.

The extensions can also be overridden on a per-article basis by using something like the following in your article's front matter:

pagedownextraExtensions: ["fenced_code_gfm", "tables", "def_list", "attr_list", "footnotes", "strikethrough"]

About

Wintersmith plugin that renders markdown using pagedown with gfm extras.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 99.3%
  • JavaScript 0.7%