Skip to main content

Prepare markdown content for publication with configurable processing pipeline

Project description

publishmd

PyPI Docs

Prepare markdown content for publication with configurable processing pipeline.

Use Case 1. Transform an Obsidian vault into publication-ready content for a Quarto blog. Convert wikilinks, filter content, copy assets, and apply transformations to prepare your notes for publishing.

Installation

pip install publishmd

# With WebP image conversion support
pip install "publishmd[webp]"

Usage

publishmd -c _config.yml
publishmd -c _config.yml -i ./vault -o ./dist

Configuration

Create a YAML configuration file to specify the processing pipeline, e.g.:

# _config.yml
input_dir: vault
output_dir: dist

filters:
  - name: published_only
    type: publishmd.filters.frontmatter_filter.FrontmatterFilter
    config:
      publish: true

transformers:
  - name: wikilinks
    type: publishmd.transformers.wikilink_transformer.WikilinkTransformer
    config:
      preserve_aliases: true
      link_extension: ".qmd"
  - name: stale_links
    type: publishmd.transformers.stale_links_transformer.StaleLinksTransformer
    config:
      convert_to_text: true

For the full configuration reference and all available filters/transformers, see the docs.

Development

pip install -e ".[dev]"
pytest

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

publishmd-1.0.0.tar.gz (41.8 kB view details)

Uploaded Source

Built Distribution

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

publishmd-1.0.0-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for publishmd-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5c9063531af515a2a4ca9e946d933cda8b1e18f34ab2a06048678fd016108962
MD5 b3fafa4a6fd561ca95e970bc501ac800
BLAKE2b-256 3ef6d52828439bec5f93b5be28d45ad541b6e8a25eb87a1f07c4ecf472225c73

See more details on using hashes here.

Provenance

The following attestation bundles were made for publishmd-1.0.0.tar.gz:

Publisher: release.yml on MateusMolina/publishmd

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

File details

Details for the file publishmd-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: publishmd-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 35.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for publishmd-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a21d2b156835adecfaf476c783298d42c5e40c5dcd7adf35cc67fb2251432d6
MD5 c51c60b1e809aa6a956547bd46166c31
BLAKE2b-256 405f5c5d828feec4eeb0daca6e1a8f030a519e46782c915100589c6e9f98c73d

See more details on using hashes here.

Provenance

The following attestation bundles were made for publishmd-1.0.0-py3-none-any.whl:

Publisher: release.yml on MateusMolina/publishmd

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