summaryrefslogtreecommitdiff
path: root/mammoth/writers
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-02-08 20:16:09 +0000
committerMichael Williamson <mike@zwobble.org>2015-02-08 20:16:09 +0000
commitee74fc4866ee91741913c7bbfdb467ba46f10f11 (patch)
tree4b15932516bb8dd279037c49cbe819dded8f3d9f /mammoth/writers
parentb427b0b04c3997c9be076ca04f0fc99353d9cbc2 (diff)
Handle strong elements in markdown writer
Diffstat (limited to 'mammoth/writers')
-rw-r--r--mammoth/writers/markdown.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mammoth/writers/markdown.py b/mammoth/writers/markdown.py
index d97c1b9..45690a6 100644
--- a/mammoth/writers/markdown.py
+++ b/mammoth/writers/markdown.py
@@ -3,6 +3,9 @@ from __future__ import unicode_literals
import re
+def _symmetric_wrapped(end):
+ return _Wrapped(end, end)
+
class _Wrapped(object):
def __init__(self, start, end):
@@ -17,6 +20,7 @@ def _init_writers():
writers = {
"p": _Wrapped("", "\n\n"),
"br": _Wrapped("", " \n"),
+ "strong": _symmetric_wrapped("__"),
}
for level in range(1, 7):