summaryrefslogtreecommitdiff
path: root/postgresqleu/util/markup.py
blob: c9616d884db645e035eb2ba13cf417c0983f3a2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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', ])


# Wrapper class for a string that we want linebreaks to be visible in
class LineBreakString(str):
    pass