mirror of
https://github.com/Hopiu/django-markdownx.git
synced 2026-03-16 21:40:24 +00:00
48 lines
1.9 KiB
Python
Executable file
48 lines
1.9 KiB
Python
Executable file
"""
|
|
Django MarkdownX is a comprehensive `Markdown <https://en.wikipedia.org/wiki/Markdown>`_ editor built for
|
|
`Django <https://www.djangoproject.com>`_, the renowned high-level Python web framework.
|
|
|
|
|
|
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.
|
|
|
|
.. image:: https://github.com/adi-/django-markdownx/raw/master/django-markdownx-preview.gif?raw=true
|
|
:target: https://github.com/adi-/django-markdownx
|
|
:align: center
|
|
:alt: django-markdownx preview
|
|
"""
|
|
|
|
# ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
|
|
# Imports
|
|
# ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
|
|
# None
|
|
|
|
# ~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=
|
|
# Documentations
|
|
# ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
|
|
__author__ = 'Adi'
|
|
__description__ = 'A comprehensive Markdown editor built for Django.'
|
|
__credits__ = 'Adi, Pouria Hadjibagheri'
|
|
__copyright__ = 'Copyright 2017'
|
|
__license__ = 'BSD'
|
|
__maintainer__ = 'Adi, Pouria Hadjibagheri'
|
|
__version__ = '1.8.1'
|
|
# ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
|
|
|
|
|
|
if __name__ == '__main__':
|
|
raise RuntimeError(
|
|
'MarkdownX is a Django plugin. It is not meant to be run an stand-alone module.'
|
|
)
|