1 2 3 4 5 6 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', ])