A django.contrib.staticfiles extension for Markdown
Project description
mdx_staticfiles
A Markdown extension to add support for django.contrib.staticfiles.
Licensed under the ISC License.
Requirements
The mdx_staticfiles plugin requires only the base markdown library.
Installation
Install with pip install mdx_staticfiles.
Documentation
Allows inserting {% static %} Django tags into Markdown, that will reference files managed by django.contrib.staticfiles.
The following Markdown example:
A [promotial video]({% static "video/promo.mkv" %}).
Might result in:
A <a href="https://cdn.example.net/static/video/promo.mkv">promotional
video</a>.
Python usage:
md = markdown.Markdown(
extensions=[
'staticfiles',
],
)
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
mdx-staticfiles-0.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for mdx_staticfiles-0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24a4850ea05f93c7bdfee6936f86b4f171f94bef4a22a011185c97c5097ae474 |
|
MD5 | ddfe96d828dc5c23f81cee355660d3ad |
|
BLAKE2b-256 | d62d6efb463f31b35c36f892ad0370db4c8328910775c3fa28d8cfef2ba19623 |