Skip to main content

A MkDocs plugin to add a markdown filter to jinja templates.

Reason this release was yanked:

pre-release

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 plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set, but now you have to enable it 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_markupsafe_markdown_filter-0.0.3.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file mkdocs_markupsafe_markdown_filter-0.0.3.tar.gz.

File metadata

File hashes

Hashes for mkdocs_markupsafe_markdown_filter-0.0.3.tar.gz
Algorithm Hash digest
SHA256 033df0f990e366866b431533f5832dd5230f7a937f4ba3331747270ed64843a6
MD5 e4c75ed95dccb1d1cb20db5a2ba407a9
BLAKE2b-256 82a83462f6251add45ffb6fe5f5233beefce788f54b1ee2b7d32419fe0ed7740

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_markupsafe_markdown_filter-0.0.3.tar.gz:

Publisher: publish.yml on ntno/mkdocs-markupsafe-markdown-filter

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

File details

Details for the file mkdocs_markupsafe_markdown_filter-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_markupsafe_markdown_filter-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3b0f04b3b583702a79ffb735cb843c54544989f6d120b49f95955a2310574e67
MD5 2192416fc28371058d97a6a611896072
BLAKE2b-256 501a05169d6560ec2abf5fc16c747b82d41ee45f81484b4131cb8e9a7683a6f0

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_markupsafe_markdown_filter-0.0.3-py3-none-any.whl:

Publisher: publish.yml on ntno/mkdocs-markupsafe-markdown-filter

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