Skip to main content

A django.contrib.staticfiles extension for Markdown

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.1

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

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

Uploaded Python 2 Python 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.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page