Mercurial > piecrust2
comparison piecrust/formatting/markdownformatter.py @ 1061:8178671f9a04
formatters: Remove Hoedown formatter, split it off to a pluging.
Its availability was spotty depending on the platform (because `misaka` doesn't
have binaries available for even Windows, for instance). So it was split off to
a plugin that the user can install if needed.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 13 Feb 2018 13:32:09 -0800 |
parents | 8adc27285d93 |
children |
comparison
equal
deleted
inserted
replaced
1060:3678cddf99f9 | 1061:8178671f9a04 |
---|---|
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 = ['pymarkdown'] | 5 FORMAT_NAMES = ['markdown', 'mdown', 'md'] |
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 |