Add Markdown to HTML rendering to item comments
Rendering done client side using Showdown: http://showdownjs.com Live preview is shown below the form. Only raw text is saved in the database (no HTML). Note that no XSS filtering is done! See https://github.com/showdownjs/showdown/wiki/Markdown's-XSS-Vulnerability-(and-how-to-mitigate-it)
Showing
- app/inventory/forms.py 2 additions, 1 deletionapp/inventory/forms.py
- app/static/js/items.js 16 additions, 0 deletionsapp/static/js/items.js
- app/templates/inventory/comment_item.html 17 additions, 4 deletionsapp/templates/inventory/comment_item.html
- app/templates/inventory/view_item.html 5 additions, 3 deletionsapp/templates/inventory/view_item.html
Loading
Please register or sign in to comment