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 details)
Built Distribution
File details
Details for the file mdx-staticfiles-0.1.tar.gz
.
File metadata
- Download URL: mdx-staticfiles-0.1.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b8df377e8ea42277afe0044fc9bc9bfa8bcd31a431d6fca2672ef36737fb4f2 |
|
MD5 | 31306761cc755ab2d764966838ae93e6 |
|
BLAKE2b-256 | 230511d097f496f8e0d37f4fc1fab1cbe8b3bb42d9d507a3b82ea9e35facbd9b |
File details
Details for the file mdx_staticfiles-0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: mdx_staticfiles-0.1-py2.py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24a4850ea05f93c7bdfee6936f86b4f171f94bef4a22a011185c97c5097ae474 |
|
MD5 | ddfe96d828dc5c23f81cee355660d3ad |
|
BLAKE2b-256 | d62d6efb463f31b35c36f892ad0370db4c8328910775c3fa28d8cfef2ba19623 |