PyMdown Extensions Blocks
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.
- Fork the repository
- Create a branch with the name of the block
- Implement the block
- Create a pull request.
Metadata
Release files for pymdownx-blocks 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pymdownx_blocks-0.1.1.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pymdownx_blocks-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.7 kB
Release files / pymdownx_blocks-0.1.1.tar.gz
| Download URL | pymdownx_blocks-0.1.1.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa2e4c1f52281a3f183b85ba03d595ab2815330482de2cb354c800df2b15b170
|
|
BLAKE2b-256 checksum How to use checksums |
87b215655e04783377c307a8d4b3ce3d8fc9f66e7e69ce70b29c23eba12cfc75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / pymdownx_blocks-0.1.1-py3-none-any.whl
| Download URL | pymdownx_blocks-0.1.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02804a2d278e24da210d5178b776991c581706b2847159d0edecc5c4b10cf996
|
|
BLAKE2b-256 checksum How to use checksums |
3248fa1d70cb4918218341df8fcec6b7646eb792bbc3ed35e21075feb466ca1d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|