Skip to content

Commit

Permalink
v1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
adi- committed May 14, 2016
1 parent 7b012db commit b3040c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<image>` 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

Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down

0 comments on commit b3040c6

Please sign in to comment.