Skip to content

Instantly share code, notes, and snippets.

@tuxcanfly
Created July 27, 2010 13:09
Show Gist options
  • Save tuxcanfly/492195 to your computer and use it in GitHub Desktop.
Save tuxcanfly/492195 to your computer and use it in GitHub Desktop.
#MARKUP SETTINGS
import markdown
from textile import textile
from docutils.core import publish_parts
from dinette.libs.postmarkup import render_bbcode
MARKUP_RENDERERS = (
('markdown', markdown.markdown),
('bbcode', render_bbcode),
('textile', textile),
('rest', lambda m: publish_parts(source=m, writer_name='html4css1')['fragment']),
)
DEFAULT_MARKUP_RENDERER = 'bbcode'
#ANALYTICS SETTINGS
GOOGLE_ANALYTICS_ACCOUNT_CODE = ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment