Mercurial > piecrust2
comparison piecrust/formatting/hoedownformatter.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 | 0c688063890f |
children | 58ef814cc83e |
comparison
equal
deleted
inserted
replaced
988:f83ae0a5d793 | 989:8adc27285d93 |
---|---|
4 | 4 |
5 logger = logging.getLogger(__name__) | 5 logger = logging.getLogger(__name__) |
6 | 6 |
7 | 7 |
8 class HoedownFormatter(Formatter): | 8 class HoedownFormatter(Formatter): |
9 FORMAT_NAMES = ['hoedown'] | 9 FORMAT_NAMES = ['markdown', 'mdown', 'md'] |
10 OUTPUT_FORMAT = 'html' | 10 OUTPUT_FORMAT = 'html' |
11 | 11 |
12 def __init__(self): | 12 def __init__(self): |
13 super(HoedownFormatter, self).__init__() | 13 super(HoedownFormatter, self).__init__() |
14 self._formatter = None | 14 self._formatter = None |