Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

This is an extension to Python-Markdown which allows environment variables to be used in the text.

Project description

This is an extension to Python-Markdown which allows environment variables to be inserted into the text. I originally wrote it for my FORD Fortran auto-documentation generator.

Installation

This module can now be installed using pip.

pip install md-environ

Usage

This module can be used in a program in the following way:

import markdown
html = markdown.markdown(source, extensions=['md_environ.environ])

The syntax for use within your Markdown files is ${ENVIRONMENT_VARIABLE}. This statement will be replaced by the contents of ENVIRONMENT_VARIABLE, if it is defined, or by an empty string otherwise.

ChangeLog

Version 0.1

Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for md-environ, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size md-environ-0.1.0.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page