In django-admin, $ does not = jQuery.  Changing $.trim() to jQuery.trim(...

...) fixes:

https://github.com/klen/django_markdown/issues/32