fix escaping of the & (helping #2)
This commit is contained in:
@ -4,6 +4,7 @@ from . import markdown2
|
||||
import os.path
|
||||
import re
|
||||
|
||||
from .escape_amp import *
|
||||
from html.parser import HTMLParser
|
||||
|
||||
# Main sublime tools function
|
||||
@ -123,6 +124,8 @@ def show_html(md_view, preview):
|
||||
|
||||
html = HTMLParser().unescape(html)
|
||||
|
||||
html = escape_amp(html)
|
||||
|
||||
# exception, again, because <pre> aren't supported by the phantoms
|
||||
html = html.replace(' espace;', '<i class="space">.</i>')
|
||||
preview.erase_phantoms('markdown_preview')
|
||||
|
||||
Reference in New Issue
Block a user