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:

site:
  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:

site:
  default_format: hoedown
  auto_formats:
    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:

site:
  default_format: hoedown
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


Download files

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

Source Distribution

PieCrust-Hoedown-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

PieCrust_Hoedown-0.1.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file PieCrust-Hoedown-0.1.0.tar.gz.

File metadata

File hashes

Hashes for PieCrust-Hoedown-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7f4e4277a57891610123998d8bf268b3e7f4566b1a64b446ef6c279a6de86e03
MD5 caadc5d4e162b12a6e42b46b4668369d
BLAKE2b-256 5f85a0c319635d9b7996099a531a06c72d66b3ae65159e96e97ffd2eb2caaa4e

See more details on using hashes here.

File details

Details for the file PieCrust_Hoedown-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for PieCrust_Hoedown-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5cfb6c4cb49c4bdfe34181e13ce7e1305dbbe6be046b6c574dfb26a0832ecf86
MD5 08f2d9d65eb4415bfe93ad2a20bcb3d6
BLAKE2b-256 49f5deb7d00e13bbe1f173730a1adfa91d04c17e0bb0ad68ee2d8639ddd869d2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page