diff --git a/README.md b/README.md index 85b559c..4d1c0ae 100755 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Example (side-by-side editor and preview using Bootstrap's grid system): ```python #urls.py urlpatterns = [ - [...] + [...] url(r'^markdownx/', include('markdownx.urls')), ] ``` @@ -57,11 +57,20 @@ Example (side-by-side editor and preview using Bootstrap's grid system): static/css/markdownx.css static/js/markdownx.js +1. Include the form's required media in the template using `{{ form.media }}` + + ```html +
{% csrf_token %} + {% include "snippets/form.html" %} + +
+ {{ form.media }} + ``` + 1. Include *[jQuery](http://jquery.com)* and *[Marked](https://github.com/chjj/marked)* files ```html - [...]