boone.severson's Avatar


23 Jan, 2012 08:36 AM

Hi Brett,

I've got a MMD text file that contains an image reference like so:
alt name

It is an exported PNG from OmniGraffle Pro sitting in a mounted encrypted sparse bundle . I made a change to the file, re-exported it, and Marked still had the old one cached. I control-clicked the image and selected Refresh to no avail. I went into Finder to see if the the PNG had been exported, and QuickView/Preview both show the PNG to match the .graffle.

I cannot work around the problem by cutting the image reference, save the text file, paste it back in and save again. It still loads a cached copy. However, if I rename the file and change the link to the new name, then everything is fine. I change the link back to the old name (but didn't rename the file in Finder), and it finally brought up a the [?] empty image/bad-link icon. At that point I could rename the file and fiddle with the link to get it to return. Is Refresh perhaps not expiring the cache the way you think it is? Is it something unique with the mounted sparse bundle?


  1. 1 Posted by boone.severson on 23 Jan, 2012 08:38 AM

    boone.severson's Avatar

    Oops, this is a markdown forum. I use the standard image reference that has an exclamation point followed by alternate text surrounded by square brackets followed by an inline reference to a path like (/Volumes/encrypted%20disk/path/to/file.png)

  2. Support Staff 2 Posted by Brett on 23 Jan, 2012 09:42 PM

    Brett's Avatar

    I can't seem to control the caching on the embedded webkit. The solution I found was just adding a query variable in the text file and incrementing it each save (image.jpg?34). So... I added a regex replacement in the preview generator that will force this query var to a random number on every refresh. It works, and I don't see any potential problems with the method (at least not for 99.9% of use cases). I've implemented this for the next release.

  3. Brett closed this discussion on 23 Jan, 2012 09:42 PM.

  4. boone.severson re-opened this discussion on 23 Jan, 2012 11:42 PM

  5. 3 Posted by boone.severson on 23 Jan, 2012 11:42 PM

    boone.severson's Avatar

    Sounds great, thank you.


  6. 4 Posted by Noam Ross on 30 Jan, 2012 10:36 PM

    Noam Ross's Avatar

    I think I have the same issue. When I update image files, they do not change in the Marked preview and I have to quit and re-start Marked for them to refresh. Looking forward to the new release!

  7. Brett closed this discussion on 30 Jan, 2012 10:40 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac