Skip to main content

Hoedown Markdown formatter for PieCrust via Misaka

Project description

This plugin for PieCrust lets you use Hoedown Markdown via Misaka for faster Markdown processing. It’s much faster than the default pure Python (but more universal) Markdown formatter that comes by default with PieCrust.

To install the plugin:

pip install piecrust-hoedown

Then enable it in your website configuration:

  plugins: [hoedown]

You can specifically use the Hoedown formatter on a per-page basis by adding format: hoedown in the page’s configuration header, but you might want to just make it the default formatter for the whole website:

  default_format: hoedown
    md: hoedown

The Hoedown formatter should be mostly compatible with the default Markdown formatter, in the sense that making it the default formatter as specified above should just work, and would make the website bake faster. However, if you were using Markdown Extensions, there may or may not be any equivalent in Hoedown. In this case, your best bet is to replace markdown with hoedown when declaring the extensions, and see if there’s an error about an extension not existing. For instance:

  default_format: hoedown
  extensions: [fenced_code, footnotes, smarty]

The list of extensions is available on the Misaka documentation. Any extension with a dash can also be written with an underscore.

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for PieCrust-Hoedown, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size PieCrust_Hoedown-0.1.0-py3-none-any.whl (5.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size PieCrust-Hoedown-0.1.0.tar.gz (3.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page