Skip to main content

Add your description here

Project description

PyMdown Extensions Blocks

Ruff PyPI - Version PyPI - Python Version Tests

These are a collection of blocks for the PyMdown Extensions that I find useful.

This project is not affiliated with the PyMdown Extensions project and is currently in a very early stage. Currently, there is only one block: DirTree.

Installation

pip install pymdownx-blocks

Usage

This can be used in MkDocs or by itself. To use in a Python file, we use the following:

import markdown

yaml_str=...
md=markdown.Markdown(extensions=['pymdownx_blocks.dirtree'])

To use in MkDocs, register the extension.

...
markdown_extensions:
...
- pymdownx_blocks.dirtree
...

In a markdown file,

///dirtree

root:
- subdir:
  - File
- another subdir:
  - anotherfile.txt
  - file.csv
///

When rendered, this will produce the following tree

Directory Structure

root ├── subdir │ └── File └── another subdir ├── anotherfile.txt └── file.csv

Contributing

More blocks are always welcome! This project uses rye for dependency management.

  1. Fork the repository
  2. Create a branch with the name of the block
  3. Implement the block
  4. Create a pull request.

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

pymdownx_blocks-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

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

pymdownx_blocks-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file pymdownx_blocks-0.1.0.tar.gz.

File metadata

  • Download URL: pymdownx_blocks-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for pymdownx_blocks-0.1.0.tar.gz
Algorithm Hash digest
SHA256 969d38060a15ef7ae34b05161009c0d696a5e71e23ab306d7be2119ab5ef6ab8
MD5 10820f5139d898a721bc7905ba83d483
BLAKE2b-256 263f4cc4477680155ed7dbbff2bd46e20ec6012ebd914fdac0276033cdf44af1

See more details on using hashes here.

File details

Details for the file pymdownx_blocks-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pymdownx_blocks-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 950aad227dd4923721b8a14d818511d8d86d9511313b8cc91768c71679d83128
MD5 c266bc9a77a337e1da6245957a1df534
BLAKE2b-256 42eb489361c63d168cadef7dd9ece4500d91fd245cd40cb7a5113ca094529f8b

See more details on using hashes here.

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