markdown: Enable table and fenced code extensions

This patch enables the table and fenced code extensions in markdown
processing.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
This commit is contained in:
Alberto Bertogli 2016-11-03 01:45:46 +00:00
parent c648cfb593
commit 53155e566a

@ -97,7 +97,11 @@ def colorize_blob(fname, s):
return highlight(s, lexer, formatter)
def markdown_blob(s):
return markdown.markdown(s)
extensions = [
"markdown.extensions.fenced_code",
"markdown.extensions.tables",
]
return markdown.markdown(s, extensions = extensions)
def embed_image_blob(fname, image_data):
mimetype = mimetypes.guess_type(fname)[0]