Skip to main content

mdx_staticfiles

GitHub CI status

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',
    ],
)

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)

Uploaded Source

Built Distribution

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

mdx_staticfiles-0.1-py2.py3-none-any.whl (3.0 kB view details)

Uploaded Python 2Python 3

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

Hashes for mdx-staticfiles-0.1.tar.gz
Algorithm Hash digest
SHA256 6b8df377e8ea42277afe0044fc9bc9bfa8bcd31a431d6fca2672ef36737fb4f2
MD5 31306761cc755ab2d764966838ae93e6
BLAKE2b-256 230511d097f496f8e0d37f4fc1fab1cbe8b3bb42d9d507a3b82ea9e35facbd9b

See more details on using hashes here.

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

Hashes for mdx_staticfiles-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 24a4850ea05f93c7bdfee6936f86b4f171f94bef4a22a011185c97c5097ae474
MD5 ddfe96d828dc5c23f81cee355660d3ad
BLAKE2b-256 d62d6efb463f31b35c36f892ad0370db4c8328910775c3fa28d8cfef2ba19623

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page