summaryrefslogtreecommitdiff
path: root/postgresqleu/util/docsviews.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-08-21 14:14:11 +0000
committerMagnus Hagander2019-08-21 15:11:22 +0000
commitc2451c4eacf222ab4e3f93d845eef1cbf06618a2 (patch)
tree11f4de28fc7311080d8cd6e4eca30107808cccf2 /postgresqleu/util/docsviews.py
parente2a304163b25c221923dacee8165b8efdcb06916 (diff)
Major overhaul of Twitter integration
* Add backend editor for queued conference tweets. This way manual tweets can be added, and auto-generated ones edited. * Don't delete tweets when posted, just mark them as sent. This together with the fact that the backend editors adds a field of who created it gives an audit trail for posts. * Support posting images in tweets. * Support twitter campaigns * Generic support for multiple campaigns, which are about generating a set of tweets based on other data in the database. * Specifically add support for "session campaigns", which generates tweets to market approved sessions. * More campaign types can be added in the future. * Each campaign gets to define a jinja2 template that is rendered across the objects to create tweets, which are then spread out across time. * Breakout the "post conference news as tweets" into it's own managed job, to keep the separation clear. This job now just adds entries to the queue of tweets.
Diffstat (limited to 'postgresqleu/util/docsviews.py')
-rw-r--r--postgresqleu/util/docsviews.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/postgresqleu/util/docsviews.py b/postgresqleu/util/docsviews.py
index fdece1d0..a485f286 100644
--- a/postgresqleu/util/docsviews.py
+++ b/postgresqleu/util/docsviews.py
@@ -53,7 +53,7 @@ def docspage(request, page):
raise Http404()
with open(filename) as f:
- md = markdown.Markdown(extensions=['markdown.extensions.def_list'])
+ md = markdown.Markdown(extensions=['markdown.extensions.def_list', 'markdown.extensions.fenced_code'])
contents = md.convert(f.read())
contents = _reSvgInline.sub(lambda m: _replaceSvgInline(m, section), contents)