Skip to main content

An mdformat plugin for pelican markdown items

Project description

mdformat-plugin

Build Status PyPI Version License

An mdformat plugin for the pelican static site generator. Pelican is a static site generator and uses markdown with a couple of additions, namely skipping the K:V pairs at the start and the ability to reference:

  • tag
  • author
  • category
  • index
  • filename
  • static
  • attach

Note that the {name} forms are supported, and the |name| forms are converted to the newer form, as the pipe form has been deprecated.

Development

This package utilises flit as the build engine, and tox for test automation.

To install these development dependencies:

pip install tox

To run the tests:

tox

and with test coverage:

tox -e py311-cov

The easiest way to write tests, is to edit tests/fixtures.md

To run the code formatting and style checks:

tox -e py311-pre-commit

or directly

pip install pre-commit
pre-commit run --all

To run the pre-commit hook test:

tox -e py311-hook

Publish to PyPi

Either use flit directly:

pip install flit
flit publish

or trigger the GitHub Action job, by creating a release with a tag equal to the version, e.g. v0.0.1.

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

mdformat_pelican-0.2.2.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mdformat_pelican-0.2.2-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file mdformat_pelican-0.2.2.tar.gz.

File metadata

  • Download URL: mdformat_pelican-0.2.2.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mdformat_pelican-0.2.2.tar.gz
Algorithm Hash digest
SHA256 97d91e7ddebc5f0d91d74dd65fdccbae449cd8aa4fb3a73a80b73b0d354f6c4a
MD5 e2ba05e2067ae0733ca72fef7711ed99
BLAKE2b-256 389391b00e3a3d96db150a17945b910070aeaddf3b85874bb4261829f7dc4f05

See more details on using hashes here.

Provenance

The following attestation bundles were made for mdformat_pelican-0.2.2.tar.gz:

Publisher: tests.yml on gaige/mdformat-pelican

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mdformat_pelican-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mdformat_pelican-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 22f4c350e4b0917023e4311d93ccf808327f9c382fed1522e0bd197c05bf283e
MD5 3316f6e86773e0667a728a458e8c079f
BLAKE2b-256 237d1061cd208941577b28e4c31d1fe945a36fda56bb15c08aff28ecba1f7ba1

See more details on using hashes here.

Provenance

The following attestation bundles were made for mdformat_pelican-0.2.2-py3-none-any.whl:

Publisher: tests.yml on gaige/mdformat-pelican

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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