summaryrefslogtreecommitdiff
path: root/postgresqleu/util/markup.py
diff options
context:
space:
mode:
Diffstat (limited to 'postgresqleu/util/markup.py')
-rw-r--r--postgresqleu/util/markup.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/postgresqleu/util/markup.py b/postgresqleu/util/markup.py
new file mode 100644
index 00000000..ab6012a1
--- /dev/null
+++ b/postgresqleu/util/markup.py
@@ -0,0 +1,7 @@
+import markdown
+
+
+# We do pure markdown and don't bother doing any filtering on the content
+# as for now anybody entering markdown is considered trusted.
+def pgmarkdown(value):
+ return markdown.markdown(value, extensions=['tables', ])