RickStrahl / MarkdownMonster

An extensible Markdown Editor, Viewer and Weblog Publisher for Windows
https://markdownmonster.west-wind.com
Other
1.59k stars 235 forks source link

Problems with HTML preview #1120

Closed internationils closed 6 months ago

internationils commented 6 months ago

clicking on an HTML file (saved from https://jlzych.com/2018/06/27/notes-from-good-strategy-bad-strategy/ )

For the background, I'm not sure a color is specified in the HTML. If you want me to attach the file, let me know.

image

RickStrahl commented 6 months ago

Hmmm... when I save from the Web browse it looks like this:

image

But that's because that actually saves the HTML plus all the support files.

If I rename the resource folder then I see what you do.

MM doesn't render a background for the browser, primarily to avoid flashes when the browser is made visible and before content is loaded (long story). So the background chrome basically bleeds through if the host page doesn't set a background color.

I don't really want to change the default for this, but I've added an override property that allows you to change the preview default background color in:

image

You can set this towhatever HTML color you like, but you may see more flashing of the white background, especially when using dark preview themes.

With that here's what this looks like:

image

RickStrahl commented 6 months ago

3.2.19.1