django-markdown2 0.2.1

This is a simple app, which supplies a single template tag for markdown markup.

This is a simple app, which supplies a single template tag for markdown markup.

Dependencies

django-markdown2 depends on python-markdown2, which can be found at http://code.google.com/p/python-markdown2.

Installation and usage

  • Place django_markdown2 somewhere in your PYTHONPATH.

  • Add django_markdown2 to you INSTALLED_APPS.

  • In any template do:

    {% load md2 %}
    {{ variable|markdown }}
    
  • Or specify additional extensions:

    {% load md2 %}
    {{ variable|markdown:"safe, code-friendly, code-color" }}
    
  • Also, if you use my recent markdown2-with-blackjack from http://pypi.aartemenko.com, then you can pass additional options to code-color extension:

    {% load md2 %}
    {{ variable|markdown:"safe, code-friendly, code-color: noclasses|linenos" }}
    

Options from this example switch off css classes and turn on line numbers.

Contribution

Code for this application available at: http://github.com/svetlyak40wt/django-markdown2

New BSD License

Author

Alexander Artemenko

Pip

django-markdown2==0.2.1

Classifiers

  • Framework :: Django
  • Intended Audience :: Developers
  • Programming Language :: Python
  • Development Status :: 3 - Alpha
  • License :: OSI Approved :: BSD License
  • Topic :: Software Development :: Libraries :: Python Modules
  • Environment :: Plugins
File Type Python Version Uploaded On Downloads
django-markdown2-0.2.1.tar.gz Source Oct. 12, 2014 1,975
Version Release Date
0.2.1 Oct. 12, 2014
0.2.0 Oct. 9, 2014
0.1.4 Nov. 13, 2008
0.1.3 Nov. 12, 2008
0.1.2 Nov. 12, 2008
0.1.1 Nov. 12, 2008
0.1.0 Nov. 10, 2008
Date Package Version Action
Aug. 26, 2015, 12:16 a.m. django-markdown2 0.1.4 Release Created
Aug. 26, 2015, 12:16 a.m. django-markdown2 0.1.3 Release Created
Aug. 26, 2015, 12:16 a.m. django-markdown2 0.1.2 Release Created
Aug. 26, 2015, 12:16 a.m. django-markdown2 0.1.1 Release Created
Aug. 26, 2015, 12:16 a.m. django-markdown2 0.1.0 Release Created
Aug. 26, 2015, 12:16 a.m. django-markdown2 0.2.0 Release Created
Aug. 26, 2015, 12:16 a.m. django-markdown2 0.2.1 Release Created
Aug. 26, 2015, 12:16 a.m. django-markdown2 Package Created