boxnotes2html

Convert Box's proprietary Box Notes to HTML, Markdown, or plain text
Log | Files | Refs | README | LICENSE

commit 2a58c8a89a11d7671b94ea21d1f122e7286716ce
parent 7317a1746874dd8ef66200c60b2f3386c8c9b4f1
Author: Alex Hayes <alex.hayes@rea-group.com>
Date:   Wed, 29 Jul 2020 11:38:41 +1000

Better underline support by using HTML <ins></ins> tags.

Diffstat:
Mboxnotes2html/markdown.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/boxnotes2html/markdown.py b/boxnotes2html/markdown.py @@ -23,8 +23,11 @@ def convert_simple_element_to_markdown(box_attribute: (str, str)) -> (str, str, start = end = "" elif attribute_type == "bold": start = end = "**" - elif attribute_type == "italic" or attribute_type == "underline": + elif attribute_type == "italic": start = end = "*" + elif attribute_type == "underline": + start = "<ins>" + end = "</ins>" elif attribute_type == "strikethrough": start = end = "~~" elif "font-size" in attribute_type: