Images rendering....

Jens Kjelsbak's Avatar

Jens Kjelsbak

09 Mar, 2021 08:02 PM

// Please enter a detailed description of the issue // Description of the issue:

This image doesn’t render in Marked 2:

![Build Task1][btask1]
[task1]: https://www.dropbox.com/s/2tu5e36khj4u6pq/Task1.jpg?dl=1

The ? character seems to be converted to %3F

If I use the Inspector edit to correct the href the images will render

// Please enter a list of steps required to reproduce the issue // Steps to reproduce:

  1. From Finder ‘Copy Dropbox Link’ (
  2. Paste and change dl=0 to dl=1

Very best regards

Jens Kjelsbak

// If applicable please attach a sample document that causes the issue for you.

// Configuration (do not edit) Marked 2 1016 (Direct)

macOS Version: 10.15.7

additionalMathJaxConfig:
allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: NO
convertGithubCheckboxes: YES
convertGithubEmoji: YES
convertYAMLToMMD: NO
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 3
defaultProcessor: MultiMarkdown
enableMiniMap: NO
excludeBlockQuotesFromCounts: NO
excludeFootnotesFromCounts: NO
excludeVerbatimFromCounts: NO
excludeCaptionsFromCounts: NO
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: YES
h1IsPageBreak: NO
h2IsPageBreak: NO
hrIsPageBreak: NO
includeMathJax: YES
includeKatex: NO
limitTextWidth: NO
mathNumberEquations: NO
mathNumberEquationsSide: 0
mathNumberEquationsAMSOnly: NO
minimalJavaScript: NO
outlineModeExtensions:
permissionGranted: NO
printHeaderBottomLeft:
printHeaderBottomRight:
printHeaderFirstPage: NO
printFooterFirstPage: NO
printHeaderTopLeft:
printHeaderTopRight:
processHTMLFiles: YES
removeMetadataForPreview: YES
removeYAMLHeaders: NO
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: NO
shouldLoadCritic: NO
syntaxHighlight: YES
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
customMarkdownProcessor:
useCustomPreprocessor: NO
customPreprocessor:
useFirstH1AsPrintTitle: YES

  1. 1 Posted by ian.griffiths on 02 Apr, 2021 10:31 AM

    ian.griffiths's Avatar

    I have the same problem.
    I have changed the default dl=0 to dl=1 and also another suggestion raw=1. These changes work in Byword, 1Writer mWeb etc. but just display a question mark in a blue box in Marked 2.
    Any help or advice would be appreciated.
    BTW this is only a recent problem as the same files with Dropbox image links were fine before.
    Thanks

  2. Support Staff 2 Posted by Brett on 02 Apr, 2021 12:14 PM

    Brett's Avatar

    I have this fixed for the next update. I will try to get that out as soon as possible.

  3. 3 Posted by ian.griffiths on 02 Apr, 2021 12:22 PM

    ian.griffiths's Avatar

    5 ★

    (ᵔᴥᵔ)

  4. Support Staff 4 Posted by Brett on 02 Apr, 2021 01:38 PM

    Brett's Avatar

    Would both of you be able to test this out before I release it? It's working for me locally, but I'd like to make sure it's working in your cases.

    Download build 1017.

    You can run it from your downloads folder, no need to overwrite the version in /Applications.

    Thanks,
    Brett

  5. 5 Posted by Jens Kjelsbak on 03 Apr, 2021 12:04 PM

    Jens Kjelsbak's Avatar

    Hi Brett,

    I can confirm that Marked2.6.61017 render my images (https://www.dropbox.com/s/xxxxxx.png?dl=1) perfectly - thanks!

    Doing my tests I found a couple of things which didn’t work:

    1. Can’t change style template (fixed with GitHub)
    2. Preference->Style->Syntax highlights doesn’t work

    I did a test (pass) with mermaid by inserting the style reference in the top of the document - it worked despite syntax highlighting was enabled. In Version 2.6.5 (1016) the mermaid script doesn’t work when syntax highlightning is enabled.
    Maybe an indication that syntax highligtning is broken. 

    Very best regards

    Jens Kjelsbak

  6. 6 Posted by ian.griffiths on 07 Apr, 2021 08:04 AM

    ian.griffiths's Avatar

    Hi Brett,
    Problem solved.
    I use linked Dropbox images quite a lot (mainly on iPadOS) but this is great for me.
    It works for both ?raw=1 and ?dl=1, which is what I use.
    Thanks a lot
    Ian

  7. 7 Posted by ian.griffiths on 14 Apr, 2021 07:57 PM

    ian.griffiths's Avatar

    Marked 2 2.6.7
    Hi Brett,
    I’ve just updated Marked 2 to version 2.6.7 and unlike the test version you let me download above, the problem displaying linked Dropbox linked files remains.
    I have just downloaded your test file again (post above) and confirm that it still works, whereas the new update 2.6.7 doesn’t.
    I hope this helps

    Kind regards
    Ian Griffiths

  8. Support Staff 8 Posted by Brett on 14 Apr, 2021 08:12 PM

    Brett's Avatar

    That's odd. I'll look into it further.

  9. Support Staff 9 Posted by Brett on 14 Apr, 2021 08:25 PM

    Brett's Avatar

    Ok, I found the issue (again). Will try to get the next update out this
    week.

    -Brett

  10. 10 Posted by ian.griffiths on 15 Apr, 2021 06:57 AM

    ian.griffiths's Avatar

    Great work! (ᵔᴥᵔ)

  11. 11 Posted by ian.griffiths on 15 Apr, 2021 10:57 AM

    ian.griffiths's Avatar

    Hi Brett,
    I think I'm a bit confused by the version numbers.
    I updated Marked 2 to version 2.6.7 on my Macbook this morning and the Dropbox image link didn't work as I described in my post, and to which you promptly answered.
    I just updated Marked 2 on my Mac Mini after checking for updates prompted me and the Dropbox image links work fine. It shows version 2.6.6 in the About box.
    When I go back to my Macbook it tells me I have the latest version, showing 2.6.7(1020) and no update is necessary.
    I'm guessing your fix for the problem reverted to the earlier version number and that's why there's no prompt on version 2.6.7.
    Feel free to call me a numpty because I've missed something. I'll leave it as it is on 2.6.7 for now in case you want to do something and I can test it. I can still use the version you posted earlier to test.
    Hope this helps

    Ian

  12. Support Staff 12 Posted by Brett on 15 Apr, 2021 11:17 AM

    Brett's Avatar

    Version 2.6.6 actually broke a bunch of other stuff accidentally, so I
    immediately released 2.6.7. The reason 2.6.6 works is because the
    JavaScript is getting an error that prevents it from loading at all, and
    the image problem was caused by JavaScript. So I would recommend updating
    to 2.6.7 so everything else works, but I'll get the real fix out (2.6.8)
    shortly.

  13. 13 Posted by ian.griffiths on 15 Apr, 2021 12:23 PM

    ian.griffiths's Avatar

    You have my sympathies.
    I used to do this stuff (SQL Server).
    So glad I'm retired ¯_(ツ)_/¯

  14. Support Staff 14 Posted by Brett on 15 Apr, 2021 06:41 PM

    Brett's Avatar

    2.6.8 is out now (direct version, Setapp and MAS pending approval), and
    should resolve this issue. Let me know if you still have any problems
    with rendering of remote images.

    -Brett

  15. 15 Posted by Jens Kjelsbak on 15 Apr, 2021 08:09 PM

    Jens Kjelsbak's Avatar

    2.6.8 works - well done

  16. Brett closed this discussion on 15 Apr, 2021 10:56 PM.

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

Keyboard shortcuts

Generic

? 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