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:
parent
c648cfb593
commit
53155e566a
6
utils.py
6
utils.py
@ -97,7 +97,11 @@ def colorize_blob(fname, s):
|
|||||||
return highlight(s, lexer, formatter)
|
return highlight(s, lexer, formatter)
|
||||||
|
|
||||||
def markdown_blob(s):
|
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):
|
def embed_image_blob(fname, image_data):
|
||||||
mimetype = mimetypes.guess_type(fname)[0]
|
mimetype = mimetypes.guess_type(fname)[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user