# HG changeset patch # User Steve Losh # Date 1579132942 18000 # Node ID 506fc48e108b0a83085ab0e179388b1513cbaaa3 # Parent 1758d8b993d02903154a8df58ac150acb8d9a211 Enable fenced code blocks diff -r 1758d8b993d0 -r 506fc48e108b __init__.py --- a/__init__.py Wed Jan 15 18:38:21 2020 -0500 +++ b/__init__.py Wed Jan 15 19:02:22 2020 -0500 @@ -22,7 +22,7 @@ if parts[0] == 'readme': content = cctx.filectx(filename).data().decode("utf-8") if parts[-1] in ['markdown', 'md']: - md = Markdown(extensions=[TocExtension(anchorlink=True)]) + md = Markdown(extensions=['fenced_code', TocExtension(anchorlink=True)]) content = md.convert(content).encode("utf-8") else: content = "
" + escape(content) + "
"