An mdformat plugin for pelican markdown items
Project description
mdformat-plugin
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
Built Distribution
File details
Details for the file mdformat_pelican-0.2.1.tar.gz
.
File metadata
- Download URL: mdformat_pelican-0.2.1.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0fdff5fddb0822c85b6f358ba743cf32dcd717e0493b42bd375a12d4762113fc |
|
MD5 | 51d581e10326aa4d49e1b579bd635974 |
|
BLAKE2b-256 | 4163839c2fd7dae0305e82e46b6d35162f7546de9adaa34a2ab8731f9eb02c66 |
File details
Details for the file mdformat_pelican-0.2.1-py3-none-any.whl
.
File metadata
- Download URL: mdformat_pelican-0.2.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 771249cec53404b53187f4b555bf24593dc70be07795e38223570c9f986ac822 |
|
MD5 | e6c4c6ade247ee905492d1d454f4fa48 |
|
BLAKE2b-256 | 0f180537278cb7cc2a92ffd28a48615b9983b0e77fd88fccc28462b425268d00 |