Skip to content

thoemmi/Pretzel.MarkdownIt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pretzel.MarkdownIt

This is a plugin for Pretzel, a static site generation tool following (more or less) the same conventions as Jekyll. It replaces the default markdown engine of Pretzel with an engine supporting not only CommonMark but extras such as tables, footnotes, etc.

Build status

Motivation

Pretzel uses CommonMark.NET for rendering markdown files. This library follows the CommonMark specification, but does not support extensions such as tables.

Therefore Jérémie Bertrand added an extensibility point for Pretzel to support other engines for rendering, and created a plugin using MarkdownDeep. This library does support tables, however it has an error regarding empty lines in code blocks, and seems somehow abandoned.

Then I remembered that Harry Pierson posted how to use the Javascript markdown parser markdown-it with the help of edge.js in .NET.

So I took Jérémie's plugin as a template and threw in Harry's code. Now I have a Pretzel plugin creating nicely rendered markdown.

Installation

Download the latest release and copy its content to the _plugins folder of your Pretzel site.