Skip to main content

Bloggerer: Markdown (and other things, probably) sprucer upperer

bloggerer is a very thin wrapper around a panflute-based Pandoc filter script that does some preprocessing magic for publishing things as (generally) HTML. I have mainly used it for generating better-looking and more functional HTML than WordPress' own Markdown handling, but also for some other quality-of-life features.

Usage

$ bloggerer path/to/post.md

The resulting HTML will be located in path/to/post.md.html and can be copied into a WordPress "Custom HTML" block.

Features

  • Handles footnotes properly
  • Proper code-block formatting and syntax highlighting
  • Support for inline images
    • WordPress incorrectly considers data: URIs to be dangerous in <img> and CSS url()s, bloggerer gets around that. (Working in prod for 3+ years. Caveat emptor, this causes the HTML to blow up and you may run into WordPress' or other blogging systems' character limits.)

Installation

Prerequisites

$ sudo apt-get install pandoc highlight

Note: If your distro has an older version of pandoc (e.g. 2.9.x), get it from https://github.com/jgm/pandoc/releases/.

$ wget https://github.com/jgm/pandoc/releases/download/<ver>/pandoc-<...>.deb
$ sudo dpkg -i ./pandoc-*.deb

Install

$ pip3 install --user bloggerer

From Source

$ git clone https://github.com/ChaosData/bloggerer && cd bloggerer
$ python3 -m pip install --user --upgrade pip setuptools
$ python3 -m pip install --user .

Packaging

$ python3 -m pip install --user wheel build
$ python3 -m build --sdist --wheel .
$ python3 -m pip install --user dist/bloggerer-*.whl

Cleaning

$ rm -rf ./build ./dist ./src/bloggerer.egg-info ./src/bloggerer/__pycache__

FAQ

Why is the first top level heading removed from the HTML?

The first top-level heading is typically the title, which handled by WordPress or other blogging things.

Metadata

Release files for bloggerer 0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bloggerer 0.9
File Size Uploaded Provenance Actions
bloggerer-0.9.tar.gz 6.7 kB Without provenance Details for bloggerer-0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bloggerer 0.9
File Interpreter ABI Platform Actions
bloggerer-0.9-py3-none-any.whl Python 3 none any Details for bloggerer-0.9-py3-none-any.whl

Total release size: 15.7 kB

Release files / bloggerer-0.9.tar.gz

Download URL bloggerer-0.9.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
672bf4a05459746e4dcd098c4348e4afe0c254ee4f06cc171dce4f07cda469f7
BLAKE2b-256 checksum
How to use checksums
a80334e1dc27e1bc5f9709db6391d8a737cf5c73eb3230ceea7c547434d6027d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / bloggerer-0.9-py3-none-any.whl

Download URL bloggerer-0.9-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
832c534e20fd94dde2014dec735e3bcbf48c2b3859e155a737ef709ccbdc30b8
BLAKE2b-256 checksum
How to use checksums
6aa07ff690c60f437d65bd8c7e05a98e85eb9c8778d5032a30af47b4744abe8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Security for bloggerer 0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page