MKDOCS CUSTOM FENCES
This package is for mkdocs and include some "code snippet" to create custom fences using pydownx superfences. This allow to customize your code blocks during the processor of your mkdocs.
For the moment, it includes only md_render.
Get started
pip install mkdocs_custom_fences
After the installation you should be able to access the extensions in mkdocs.yml using mkdocs_custom_fences.file.class. See below for more information using configuration.
Mkdocs configuration
In your mkdocs.yml configuration you need to configure superfences to use custom fences.
markdow_extensions:
pymdownx.superfences:
custom_fences:
- name: language
class: language
format: !!python/name:mkdocs_custom_fences.file.class
Markdown Render
→ Configuration : !!python/name:mkdocs_custom_fences.md_render.md_sub_render
This custom formattor allow you to "force" markdown and remove the code block.
Add this in your configuration :
markdow_extensions:
pymdownx.superfences:
custom_fences:
- name: md-render
class: md-render
format: !!python/name:mkdocs_custom_fences.md_render.md_sub_render
💡You can customize the name and class with any language you want.
Example :
```md-render
|Col0|Col1|Col2|Col3|
|----|----|----|----|
|xml |x|x|x|
```
Will become :
Contribution
I will be happy to see any new configuration and custom fences.
To contribute :
- Fork and clone this project
pip install -r requirements.txt(I advice you to use virtual environment ; personnaly I use conda.)- Create a new file (don't use any already custom fences for new customization). Don't forget to update the requirements.txt if you need).
- Edit this README to add an example and the configuration.
- Add the custom fences to the list.
- Create a pull request
⚠️ You need to use conventionnal commit as described here
Metadata
Release files for mkdocs-custom-fences 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mkdocs_custom_fences-0.1.2.tar.gz | 8.4 kB | Without provenance | Details for mkdocs_custom_fences-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mkdocs_custom_fences-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for mkdocs_custom_fences-0.1.2-py3-none-any.whl |
Total release size: 11.6 kB
Release files / mkdocs_custom_fences-0.1.2.tar.gz
| Download URL | mkdocs_custom_fences-0.1.2.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
04172a8e1a8232979aa4972ce6fdaa976775e50faf1f741fbc347d7a39ac21c7
|
|
BLAKE2b-256 checksum How to use checksums |
2a25ee1230d0b81a2c756de640d0b4d7a4d52422cbb00aa56ae8667ad2263cad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.10 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.6.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.5
|
Release files / mkdocs_custom_fences-0.1.2-py3-none-any.whl
| Download URL | mkdocs_custom_fences-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f4178b61e2edda468e9ece6dbfd8a0ac7f472d6464730e79f51577f5d1c9a1c
|
|
BLAKE2b-256 checksum How to use checksums |
398188f4dad947ff1b00832df90c9a9b18e3baba0dfef919a1199df025bb087f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.3 readme-renderer/35.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.10 tqdm/4.64.0 importlib-metadata/4.12.0 keyring/23.6.0 rfc3986/2.0.0 colorama/0.4.5 CPython/3.10.5
|
Security for mkdocs-custom-fences 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.