tag:support.markedapp.com,2011-09-11:/discussions/problems/159392-images-breaking-on-preview-automatic-refreshMarked: Discussion 2020-09-18T15:53:22Ztag:support.markedapp.com,2011-09-11:Comment/486416412020-09-18T14:27:56Z2020-09-18T14:27:57Zimages breaking on preview automatic refresh<div><p>// Please enter a detailed description of the issue // Description of the issue: Preview loses the images when auto-refreshing after a file edit. An explicit CMD-R refresh restores the images.</p>
<p>// Please enter a list of steps required to reproduce the issue // Steps to reproduce:</p>
<ol>
<li>Open a markdown file containing images<br></li>
<li>CMD-E, edit the file, and save chages<br></li>
<li>Marked 2 refreshes the preview, but without the images</li>
</ol>
<p>// If applicable please attach a sample document that causes the issue for you.</p>
<p>// Configuration (do not edit) Marked 2 1007 (Direct)</p>
<h2><a name="macos-version-10-14-6-" class="anchor" href="#macos-version-10-14-6-"></a>macOS Version: 10.14.6</h2>
<p>additionalMathJaxConfig:<br>
allowPageBreakInCode: YES<br>
bookTxtIsLeanpub: NO<br>
summaryMdIsGitBook: NO<br>
codeIsPoetry: NO<br>
codeCanWrap: YES<br>
collapsibleHeadlines: NO<br>
convertGithubCheckboxes: YES<br>
convertYAMLToMMD: NO<br>
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML<br>
defaultPreviewStyle: 0<br>
defaultProcessor: MultiMarkdown<br>
enableMiniMap: NO<br>
excludeBlockQuotesFromCounts: NO<br>
excludeFootnotesFromCounts: NO<br>
excludeVerbatimFromCounts: NO<br>
excludeCaptionsFromCounts: NO<br>
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml<br>
githubNewlines: NO<br>
h1IsPageBreak: NO<br>
h2IsPageBreak: NO<br>
hrIsPageBreak: NO<br>
includeMathJax: NO<br>
includeKatex: NO<br>
limitTextWidth: NO<br>
minimalJavaScript: NO<br>
outlineModeExtensions:<br>
permissionGranted: NO<br>
printHeaderBottomLeft:<br>
printHeaderBottomRight:<br>
printHeaderFirstPage: NO<br>
printFooterFirstPage: NO<br>
printHeaderTopLeft:<br>
printHeaderTopRight:<br>
processHTMLFiles: YES<br>
removeMetadataForPreview: NO<br>
removeYAMLHeaders: NO<br>
scrollToEdit: YES<br>
shouldDetectCritic: YES<br>
shouldHighlightMarkupErrors: NO<br>
shouldLoadCritic: NO<br>
syntaxHighlight: YES<br>
syntaxHighlightOnlyLang: NO<br>
useCustomMarkdownProcessor: NO<br>
customMarkdownProcessor:<br>
useCustomPreprocessor: NO<br>
customPreprocessor:<br>
useFirstH1AsPrintTitle: YES</p></div>George Dinwiddietag:support.markedapp.com,2011-09-11:Comment/486416412020-09-18T14:55:35Z2020-09-18T14:55:35Zimages breaking on preview automatic refresh<div><p>I'm unable to replicate this issue on my end, which makes tracking it down significantly more difficult.</p>
<p>While the preview is showing broken images, could you right click on one of the broken image icons and choose "Inspect Element" and send me a screenshot of what you see there? Then hit refresh to restore the image and repeat the process? If you'd like to avoid screenshots, you can also just hit ⌘C while the img element is highlighted and paste the two results into a code block in your response.</p>
<p>Thanks,<br>
Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/486416412020-09-18T15:31:30Z2020-09-18T15:31:30Zimages breaking on preview automatic refresh<div><p>Here are the images.</p></div>George Dinwiddietag:support.markedapp.com,2011-09-11:Comment/486416412020-09-18T15:39:04Z2020-09-18T15:39:05Zimages breaking on preview automatic refresh<div><p>Here's the text copy, if that helps<br>
broken image: <img alt="Slide2"><br>
working image: <img alt="Slide2"></p>
<p>Besides the "v" parameter changing, I notice the "?" in the directory<br>
name is not URL-encoded in the broken one.</p>
<ul>
<li>George</li>
</ul></div>George Dinwiddietag:support.markedapp.com,2011-09-11:Comment/486416412020-09-18T15:47:55Z2020-09-18T15:47:55Zimages breaking on preview automatic refresh<div><p>You're correct, it appears in the broken version that the ? is not being translated to a percent-encoded version as it should be. I'll have to dig in to figure out where this is failing.</p>
<p>It appears you named the parent directory with a question mark, so the obvious workaround right now is just to remove that question mark from the directory name.</p>
<p>In the meantime, I'll try to figure out where that's not being encoded properly (or being prematurely decoded).</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/486416412020-09-18T15:52:26Z2020-09-18T15:52:26Zimages breaking on preview automatic refresh<div><p>Renaming the directory works. Thank you for helping me figure out what<br>
was wrong.</p>
<ul>
<li>George</li>
</ul></div>George Dinwiddietag:support.markedapp.com,2011-09-11:Comment/486416412020-09-18T15:53:21Z2020-09-18T15:53:21Zimages breaking on preview automatic refresh<div><p>Sure thing. I've added the bug to my list for the next update. Thanks<br>
for reporting!</p>
<p>-Brett</p></div>Brett