mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
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):
|
def read(self, filename):
|
||||||
"""Parse content and metadata of markdown files"""
|
"""Parse content and metadata of markdown files"""
|
||||||
text = open(filename)
|
text = open(filename)
|
||||||
md = Markdown(extensions = ['meta'])
|
md = Markdown(extensions = ['meta', 'codehilite'])
|
||||||
content = md.convert(text)
|
content = md.convert(text)
|
||||||
|
|
||||||
metadatas = {}
|
metadatas = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue