Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.24 KB

readme.md

File metadata and controls

36 lines (26 loc) · 1.24 KB

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"]