forked from github/pelican
Add syntax highlight support for markdown posts
This commit is contained in:
parent
090a02a9e3
commit
d489000c65
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class MarkdownReader(object):
|
|||
def read(self, filename):
|
||||
"""Parse content and metadata of markdown files"""
|
||||
text = open(filename)
|
||||
md = Markdown(extensions = ['meta'])
|
||||
md = Markdown(extensions = ['meta', 'codehilite'])
|
||||
content = md.convert(text)
|
||||
|
||||
metadatas = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue