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-1.0.0.tar.gz (4.4 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-1.0.0-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mdformat_pelican-1.0.0.tar.gz
Algorithm Hash digest
SHA256 db6aa62d3d07629a0314eca8d6ddd6f2f912f7da5f37b055050875cc9edd66a9
MD5 371f554d15601ec80e198adc57181968
BLAKE2b-256 c2afe3163eff9450cc85673eb8d60746ac27f2caa970eebc252fc64fea1df7b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for mdformat_pelican-1.0.0.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-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mdformat_pelican-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5bd4a6c3226ae97678be447a537f6f96900b72f3d660e3149b5c2592fc4a82a0
MD5 75377b10b5e3d2d96ac91079ab760bf1
BLAKE2b-256 a183aa185a88b9623e67dfea6c21da91b1c58fba9e72cb70679c152eac8a2c23

See more details on using hashes here.

Provenance

The following attestation bundles were made for mdformat_pelican-1.0.0-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