diff --git a/markdownify/__init__.py b/markdownify/__init__.py index 4542f9a..59aa694 100644 --- a/markdownify/__init__.py +++ b/markdownify/__init__.py @@ -47,6 +47,7 @@ class MarkdownConverter(object): heading_style = UNDERLINED bullets = '*+-' # An iterable of bullet types. strong_em_symbol = '*' + newline = 'spaces' class Options(DefaultOptions): pass @@ -155,7 +156,10 @@ class MarkdownConverter(object): if convert_as_inline: return "" - return ' \n' + if self.options['newline'] == 'backslash': + return '\\\n' + else: + return ' \n' def convert_em(self, el, text, convert_as_inline): em_tag = self.options['strong_em_symbol']