Skip to content

Wintersmith plugin that renders markdown using a modified version of Showdown.

Notifications You must be signed in to change notification settings

lhagan/wintersmith-showdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wintersmith-showdown

Showdown plugin for wintersmith. Renders Markdown content using (a modified version of) Showdown instead of the default, marked. While slower to render, this enables lots of Markdown extras such as footnotes, tables, strikethrough, LaTeX math (via MathML), and smart punctuation. Also adds extremely inefficient code highlighting via highlight.js.

This is a very rough, initial release. Use at your own risk!

install:

npm install git://github.com/lhagan/wintersmith-showdown.git

then add ./node_modules/wintersmith-showdown/ to config.json like this:

{
  "locals": {
    "url": "http://localhost:8080",
    "name": "The Wintersmith's blog",
    "owner": "The Wintersmith",
    "description": "-32°C ain't no problems!",
    "index_articles": 3
  },
  "plugins": [
    "./node_modules/wintersmith-showdown/"
  ]
}

per-page showdown extensions

By default, all extensions are enabled. For more fine-grained control, include showdownExtensions in your page metadata. For example:

---
title: Wintersmith Showdown
template: index.jade
showdownExtensions: ['github', 'smartypants']
---

About

Wintersmith plugin that renders markdown using a modified version of Showdown.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published