tag:support.markedapp.com,2011-09-11:/discussions/problems/97012-refreshing-imagesMarked: Discussion 2016-08-11T03:15:56Ztag:support.markedapp.com,2011-09-11:Comment/361458072015-02-26T14:01:27Z2015-02-26T14:01:27ZRefreshing Images<div><p>Marked should refresh local images instantly within the preview
when<br>
they're changed. I've made some improvements to this in the
version<br>
that's currently waiting for review, but it should still be picking
them<br>
up in your current version. Where are the images located in
relation to<br>
the Markdown document?</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/361458072015-02-26T18:54:40Z2015-02-26T18:54:40ZRefreshing Images<div><p>The image is in the same directory, and is referenced with just
the name. E.g. !(MyImage.png).</p>
<p>I've experienced the same problem with a PNG and a PDF. Haven't
tried any other types.</p>
<p>Thanks!<br>
-Bill</p></div>Bill Nageltag:support.markedapp.com,2011-09-11:Comment/361458072015-03-02T15:21:48Z2015-03-02T15:21:48ZRefreshing Images<div><p>I just did some more testing, and in both the current version
and the<br>
version in review it appears to be working fine for me. I'm
wondering if<br>
you're running into a JavaScript error. The last update for
direct<br>
customers moved out of sandbox, but the shift of the preference
system<br>
caused some major issues in certain cases.</p>
<p>To check this, you can hit control-option-I, then choose the
"Console"<br>
view. Typing "Marked.config.inspect" <em>should</em> show you all
of the<br>
configuration options that apply to the JavaScript API. If they all
come<br>
up "undefined," then this is that issue. If not, we'll have to
look<br>
elsewhere.</p>
<p>You can also turn on the "debug" mode under Advanced
preferences, and<br>
with the aforementioned console open make an adjustment to the
image and<br>
see if there are any errors logged.</p>
<p>Thanks,<br>
Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/361458072015-03-05T12:17:35Z2015-03-05T12:17:35ZRefreshing Images<div><p>Well, now it's working for me, too. I blame ghosts.</p>
<p>Thanks for your help (even if I didn't actually need it).</p></div>Bill Nageltag:support.markedapp.com,2011-09-11:Comment/361458072015-04-09T18:56:23Z2015-04-09T18:56:24ZRefreshing Images<div><p>I am having a similar issue (Marked2 ver. 2.4.11, <em>not</em>
purchased through app store). As recommended by Brett, I turned on
debug mode. Here are the steps I took that resulted in the error
(old image appearing):</p>
<ol>
<li>Modify embedded PDF image (embedded image updates to new
version)<br></li>
<li>Edit markdown text and save<br></li>
<li>Image reverts to old version with "fail wrapping object" error
in console</li>
</ol>
<p>Here is the output after typing "Marked.config.inspect":<br>
function publicPrintCocoaPrefs(key) {var
prefs=getCocoaPreferences();if(typeof
config==="undefined"||config===null){Marked.config.init()}if(typeof
key==="undefined"||key===null){console.log("Cocoa
preferences");printObj(prefs);console.log("JS
preferences");printObj(Marked.config)}else{if(prefs.hasOwnProperty(key)){console.log("Cocoa:
"+prefs[key])}else{console.log("Cocoa: Key not
found")}if(Marked.config.hasOwnProperty(key)){console.log("JS:
"+Marked.config[key])}else{console.log("JS: Key not found")}}}</p></div>Chad Eliasontag:support.markedapp.com,2011-09-11:Comment/361458072015-04-09T20:08:03Z2015-04-09T20:08:03ZRefreshing Images<div><p>I don't have refresh set up for PDF. I don't remember why right
now, though. I'll look into adding that. Currently it monitors jpg,
gif, and svg. It sounds like the issue is more about caching,
though. Is your PDF local, and does the image reference contain
anything other than the path and file name?</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/361458072015-04-09T20:19:41Z2015-04-09T20:19:41ZRefreshing Images<div><p>I found the issue, it's definitely a caching problem. Fixed for
next<br>
update.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/361458072015-04-09T20:20:57Z2015-04-09T20:20:59ZRefreshing Images<div><p>Great! Thanks for the quick reply. In case you still need the
info - the PDF is local, and the image reference only includes the
path and file name.</p></div>Chad Eliason