1
0
Fork 0
forked from github/pelican

update typogrify support

This commit is contained in:
Alexis Metaireau 2012-07-26 22:02:06 +02:00
commit 22c88e4de3

View file

@ -185,8 +185,8 @@ def read_file(filename, fmt=None, settings=None):
# eventually filter the content with typogrify if asked so
if settings and settings['TYPOGRIFY']:
from typogrify import Typogrify
content = Typogrify.typogrify(content)
metadata['title'] = Typogrify.typogrify(metadata['title'])
from typogrify.filters import typogrify
content = typogrify(content)
metadata['title'] = typogrify(metadata['title'])
return content, metadata