Skip to content

Commit

Permalink
Merge pull request #1 from astrodsg
Browse files Browse the repository at this point in the history
  • Loading branch information
liob committed Dec 6, 2014
2 parents 70b2c1d + 769343d commit 9ef0197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandoc_reader.py
@@ -1,5 +1,4 @@
import subprocess

from pelican import signals
from pelican.readers import BaseReader
from pelican.utils import pelican_open
Expand Down Expand Up @@ -42,7 +41,8 @@ def read(self, filename):
return output, metadata

def add_reader(readers):
readers.reader_classes['md'] = PandocReader
for ext in PandocReader.file_extensions:
readers.reader_classes[ext] = PandocReader

def register():
signals.readers_init.connect(add_reader)

0 comments on commit 9ef0197

Please sign in to comment.