A MkDocs plugin to add a markdown filter to jinja templates.
Project description
mkdocs-markupsafe-markdown-filter
This plugin adds pallets' MarkupSafe template filter to mkdocs.
Setup
Install the plugin using pip:
pip install mkdocs-markupsafe-markdown-filter
Activate the plugin in mkdocs.yml:
plugins:
- search
- markupsafe-markdown-filter
Note: If you have no
pluginsentry in your config file yet, you'll likely also want to add thesearchplugin. This is because MkDocs enables thesearchplugin by default if there is nopluginsentry set. When you add a external plugin likemarkupsafe-markdown-filteryou have to enable thesearchplugin explicitly.
More information about plugins in the MkDocs documentation.
Usage
Enabling this plugin will filter jinja template code through a markdown filter:
{% set code_content %}
```php linenums="1"
<?php
foo = 1;
bar = 3;
if (foo == bar ) {
// do something
}
?>
```
{% endset %}
{{ code_content|markdown }}
See Also
More information about templates here.
More information about blocks here.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_markupsafe_markdown_filter-0.1.0.tar.gz.
File metadata
- Download URL: mkdocs_markupsafe_markdown_filter-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18e796f51f41dd40b7d6a7c406ecdf22f3311502cdcf26baa6275fb077e105ae
|
|
| MD5 |
bec9694e7c4551d695f623aa17e282da
|
|
| BLAKE2b-256 |
25a390cbd14154340b8d3159ec362009bf3c33031412219f4c8e34711095811a
|
Provenance
The following attestation bundles were made for mkdocs_markupsafe_markdown_filter-0.1.0.tar.gz:
Publisher:
publish.yml on ntno/mkdocs-markupsafe-markdown-filter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_markupsafe_markdown_filter-0.1.0.tar.gz -
Subject digest:
18e796f51f41dd40b7d6a7c406ecdf22f3311502cdcf26baa6275fb077e105ae - Sigstore transparency entry: 194170873
- Sigstore integration time:
-
Permalink:
ntno/mkdocs-markupsafe-markdown-filter@c7ef78b8bf871cd3bd4cff4cbfb0ff6f286a0be2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ntno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c7ef78b8bf871cd3bd4cff4cbfb0ff6f286a0be2 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file mkdocs_markupsafe_markdown_filter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mkdocs_markupsafe_markdown_filter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4213d5be32a19e43d843b989a5f1aae86da9cd785618f463053f435b28250c5a
|
|
| MD5 |
bae9ab249372c2970a95bc354c56a77c
|
|
| BLAKE2b-256 |
a8ff3017ce4d858de6d9876bce05777bc8340339641075112045b74f0338a6cd
|
Provenance
The following attestation bundles were made for mkdocs_markupsafe_markdown_filter-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on ntno/mkdocs-markupsafe-markdown-filter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mkdocs_markupsafe_markdown_filter-0.1.0-py3-none-any.whl -
Subject digest:
4213d5be32a19e43d843b989a5f1aae86da9cd785618f463053f435b28250c5a - Sigstore transparency entry: 194170874
- Sigstore integration time:
-
Permalink:
ntno/mkdocs-markupsafe-markdown-filter@c7ef78b8bf871cd3bd4cff4cbfb0ff6f286a0be2 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ntno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c7ef78b8bf871cd3bd4cff4cbfb0ff6f286a0be2 -
Trigger Event:
workflow_dispatch
-
Statement type: