Django MarkdownX is a comprehensive Markdown plugin built for Django, the renowned high-level Python web framework, with flexibility, extensibility, and ease-of-use at its core.
Django blog development tutorial 9 – support for markdown syntax and code highlighting Time:2020-4-3 In order to make blog posts have a good layout and display more rich formats, we use markdown syntax to write our blog posts. To install django-markdown2 in your current environment, run pip install django-markdown2 and forget about manually downloading anything or modifying PYTHONPATH. Then, once the library is installed, change your settings.py to include djangomarkdown2 in your INSTALLEDAPPS.
GitHub:https://github.com/neutronX/django-markdownx
PyPi:https://pypi.org/project/django-markdownx/
- Django-markdown2 depends on python-markdown2, which can be found at http://code.google.com/p/python-markdown2.
- Django Admin¶ When using included MarkdowxModel class in your models, just use MarkdownxModelAdmin in your app/admin.py as follows: from django.contrib import admin from markdownx.admin import MarkdownxModelAdmin from.models import MyModel admin.site.register(MyModel, MarkdownxModelAdmin).
Key features¶
- Raw editing.
- Live preview.
- Drag & drop image uploads (automatically stored in the designated location in the Media directory).
- Customizable image insertion tag.
- Definition of maximum size for an image.
- Definition of acceptable image formats (PNG, JPEG, SVG).
- Image manipulations (compression, size reduction, cropping, upscaling).
- Pre- and post- text modification.
- Easy template customization, layout modification, and personalization.
- Multiple editors per page.
- Django Admin support.
Preview¶
Acknowledgements¶
We acknowledge and appreciate every contribution made towards improving Django MarkdownX, a list of which can befound on our GitHub contributors page.
Django MarkdownX was inspired by the great Django Images andDjango Bootstrap Markdown packages.
Latest versionDjango Markdown Editor
Released:
This is a simple app, which supplies a single template tag for markdown markup.
Django Markdown Image
Project description
[![changelog](http://allmychanges.com/p/python/django-markdown2/badge/)](http://allmychanges.com/p/python/django-markdown2/?utm_source=badge)
This is a simple app, which supplies a single template tag formarkdown markup.
Dependencies
django-markdown2 depends on python-markdown2, which can be foundat 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>
Release historyRelease notifications | RSS feed
0.3.1
0.3.0
Django Markdownx
0.2.1
0.2.0
Django Markdown To Html
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size django-markdown2-0.3.1.tar.gz (4.1 kB) | File type Source | Python version None | Upload date | Hashes |
Hashes for django-markdown2-0.3.1.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | f04748d56788f6291d8d35f0e53a58530e1c0b34981b046883b319b64c8117e2 |
MD5 | 8d30383cbd8058af3ed7a97b58afd16a |
BLAKE2-256 | f962eadc690275c3a66e08e2d9b3bf5576285f0df896fc787faa45691900b2f6 |