fix indentation in pre in preview

Again, this is a dodgy hack: replace spaces with dot with the color
exactly like the background, because otherwise ST ignores it, even in
pre
This commit is contained in:
Mathieu PATUREL
2019-11-15 15:02:31 +11:00
parent 6016f07cd1
commit e3896a6b3d
4 changed files with 15 additions and 8 deletions

View File

@ -207,7 +207,7 @@ class MarkdownLivePreviewListener(sublime_plugin.EventListener):
resources
)
# print(html)
print(repr(html))
self.phantom_sets[markdown_view.id()].update([
sublime.Phantom(sublime.Region(0), html, sublime.LAYOUT_BLOCK,