diff --git a/README.md b/README.md index 1bd6fb6..5704a14 100755 --- a/README.md +++ b/README.md @@ -270,6 +270,10 @@ $('.markdownx').on('markdownx.update', function(e, response) { }); ``` +## Custom image insertion tags + +Markdown uses `![]()` syntax to insert uploaded image file. This generates very simple html `` tag. When you want to have more control and use your own html tags just create custom `form_valid()` function in `ImageUploadView` class (`views.py`). + # Dependencies @@ -280,6 +284,10 @@ $('.markdownx').on('markdownx.update', function(e, response) { # Changelog +###### v1.5 + +* Possibility to customize image insertion code + ###### v1.4.3 * Markdown abstractable function fix diff --git a/setup.py b/setup.py index a4d8f24..486d630 100755 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ def get_requirements(): setup( name='django-markdownx', - version='1.4.3', + version='1.5', packages=find_packages(), include_package_data=True, description='Django Markdownx is a Markdown editor built for Django. It enables raw editing, live preview and image uploads (stored in `MEDIA` folder) with drag&drop functionality and auto tag insertion. Also, django-markdownx supports multiple editors on one page.',