Code52/DownmarkerWPF — pull request #209 by belfryimages (2012-04-09 12:28:17+00:00)
Title: More fixes for local resources & links / Awesomium bugs

Fixes most issues with:

- using a local resource (like an image or stylesheet)
- linking to a local resource (including when the file doesn't exist - simple case is `[test](test)`

Local files are loaded into the preview if they exist relative to the saved file. So the file has to be saved first, then you can do `![kittehs](kittehs.jpg)`.

The only issue I can still find is when clicking a link to a local resource that exists, eg `[click me](kittehs.jpg)`, which sometimes incorrectly opens the resource in the preview pane (seems random, can happen either way even with the same MD file loaded).

This is hard to clean up because it is all a workaround for how Awesomium bugs out with local links when the displayed document is loaded in-memory. A better workaround would be to write a temp HTML file alongside the MD file being viewed, and display that directly, but that introduces a lot of complexity.