Skip to main content

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.

Source Distribution

md-environ-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file md-environ-0.1.0.tar.gz.

File metadata

  • Download URL: md-environ-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for md-environ-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fe3c2a255af523d6f522831c699336cd71f9d543714067d93206ed35836f1793
MD5 0ba592e693dc949f55b117a1c250c1b0
BLAKE2b-256 68a986666edbf0d3929d5b3be3347c153881139aa1e28af38f6496edcc034003

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