Error: Format of file “image.png” is unrecognized

marked2's Avatar


23 Sep, 2018 10:59 AM


Marked 2 seems to have problems to display images when there is a block before containing a slash and the word '.dylib'.

Steps to reproduce:
1. Create a folder
2. Add a valid png image in this folder with the filename image.png
3. Add a file containing the content:


4. Open in Marked 2

Result: The markdown file is rendered as:
Error: Format of file “image.png” is unrecognized

See the attached screenshot. Note that other Markdown previewers don't have this issue.

  1. Support Staff 1 Posted by Brett on 23 Sep, 2018 01:20 PM

    Brett's Avatar

    This is an interesting edge case. I'm actually unable to replicate your
    exact issue, but there are a few things happening. The biggest issue is
    that the /abc.dylib line is being interpreted as an iA Writer content
    block, and converted to a Marked include. This is my fault, and even
    fixing other issues wouldn't solve the problem.

    The formatting issue I'm seeing with your pasted code is the space
    between the backticks in your fences. I'm not sure if this is accepted
    formatting in another processor, but in both MMD and GFM the backticks
    need to be consecutive. Like I said, though, you're still going to run
    into issues as long as the first character of a line is a forward slash,
    and that's something I'll need to fix within code blocks.


  2. 2 Posted by marked2 on 23 Sep, 2018 02:31 PM

    marked2's Avatar

    Hey Brett,

    Thanks for looking at this issue. In the sample code I pasted, there is no space between the backticks. Maybe this website processed the pasted markdown somehow?

    I attached a zip file containing the code. Let me know if you need more information or feedback. I will be happy to test.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Already uploaded files

  • Preview.png 39.9 KB

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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