Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 573 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 573 Bytes

markdown_jinja

This extension to Python-Markdown enables to use Jinja2 markup in markdown documents.

Installation

This module can installed using pip:

$ pip install markdown-jinja

Usage

JinjaMarkdown can be passed as a standard extension to Python-Markdown:

import markdown
from markdown_jinja import JinjaMarkdown
html = markdown.markdown(text, extensions=[JinjaMarkdown(context_file='path/to/context.json')])