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.2.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.2.tar.gz.

File metadata

File hashes

Hashes for mkdocs_markupsafe_markdown_filter-0.0.2.tar.gz
Algorithm Hash digest
SHA256 163fd78e04c5cbc3146cd8a43a4a3a24474c13fe09b7a3ce16eae2897a65648c
MD5 03725c286266bc7cebecfd4da1fdff71
BLAKE2b-256 6f0d2f05fd1ee33099c818ef434b17c78fd2c0bb84dd94a45eb1b61a163d5305

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_markupsafe_markdown_filter-0.0.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_markupsafe_markdown_filter-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d6ca0972cd177feb0d1a1e5edf109d9d0bf95955d9002594367c40a6a1864199
MD5 3ce097b3f0048c36335388eef6b2b69d
BLAKE2b-256 1da08d7136eddb384867a7ce58053c85455b2004fdbbf683d9f18a0d01f05da7

See more details on using hashes here.

Provenance

The following attestation bundles were made for mkdocs_markupsafe_markdown_filter-0.0.2-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