comparison piecrust/formatting/markdownformatter.py @ 989:8adc27285d93

bake: Big pass on bake performance. - Reduce the amount of data passed between processes. - Make inter-process data simple objects to make it easier to test with alternatives to pickle. - Make sources have the basic requirement to be able to find a content item from an item spec (path). - Make Hoedown the default Markdown formatter.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 19 Nov 2017 14:29:17 -0800
parents 370e74941d32
children 8178671f9a04
comparison
equal deleted inserted replaced
988:f83ae0a5d793 989:8adc27285d93
1 from piecrust.formatting.base import Formatter 1 from piecrust.formatting.base import Formatter
2 2
3 3
4 class MarkdownFormatter(Formatter): 4 class MarkdownFormatter(Formatter):
5 FORMAT_NAMES = ['markdown', 'mdown', 'md'] 5 FORMAT_NAMES = ['pymarkdown']
6 OUTPUT_FORMAT = 'html' 6 OUTPUT_FORMAT = 'html'
7 7
8 def __init__(self): 8 def __init__(self):
9 super(MarkdownFormatter, self).__init__() 9 super(MarkdownFormatter, self).__init__()
10 self._formatter = None 10 self._formatter = None