fix <hr>s ref #17

Phantoms do not support <hr/>, but <hr />
This commit is contained in:
=
2017-02-02 18:30:42 +11:00
parent 30d75f159d
commit c92d78fb20
3 changed files with 12 additions and 5 deletions

View File

@ -77,7 +77,9 @@ def markdown2html(md, basepath):
html = replace_img_src_base64(html, basepath=os.path.dirname(basepath))
# BeautifulSoup uses the <br/> but the sublime phantoms do not support them...
html = html.replace('<br/>', '<br />')
html = html.replace('<br/>', '<br />').replace('<hr/>', '<hr />')
sublime.set_clipboard(html) # print
return html