Skip to content

Instantly share code, notes, and snippets.

@thoslin
Created May 16, 2012 01:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thoslin/2706626 to your computer and use it in GitHub Desktop.
Save thoslin/2706626 to your computer and use it in GitHub Desktop.
django-markitup settings
# django-markitup settings
# The MARKITUP_FILTER setting defines how markup is transformed into HTML on your site.
# This setting is only required if you are using MarkupField or MarkItUp! AJAX preview.
MARKITUP_FILTER = ('markdown.markdown', {'safe_mode': False, 'enable_attributes': True})
# MarkItUp! allows the toolbar button-set to be customized in a Javascript settings file.
MARKITUP_SET = 'markitup/sets/markdown'
# MarkItUp! skins can be specified in a similar manner.
MARKITUP_SKIN = 'markitup/skins/simple'
# If set to True, the preview window will be activated by default. Defaults to False.
MARKITUP_AUTO_PREVIEW = True
JQUERY_URL = 'js/jquery.js'
MARKITUP_ALLOWED_TAGS = ['a', 'table', 'tr', 'td']
MARKITUP_ALLOWED_ATTRIBUTES = {
'a': ['href', 'title'],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment