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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

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