Table of contents displayed behind document images

wulff's Avatar


02 Mar, 2012 10:58 AM


When I turn on the table of contents by pressing CMD-T or by clicking the icon in the status bar, the gray box containing the table of contents is displayed behind the images in the document. See the attached screenshot.

Steps to reproduce

  1. Create a markdown document with one or more image
  2. View the document in marked
  3. Scroll the document to have an image close to the status bar in the bottom of the window
  4. Turn on the table of contents

Desired behavior

When the table of contents is displayed, it should float above any images in the document.

  1. Support Staff 1 Posted by Brett on 02 Mar, 2012 02:51 PM

    Brett's Avatar

    I'm not seeing this happen, at least on my current development version. Either I fixed it accidentally, or there's something unique going on.

    Are you using a custom theme or processor at all? How are you inserting the images, and are there any elements wrapping them in your source?

  2. 2 Posted by wulff on 02 Mar, 2012 02:57 PM

    wulff's Avatar

    I'm seeing this in all the default themes except the GitHub theme.

    I'm not using any custom themes or processors.

    Markdown source (between regular text paragraphs):

    ![Oversigtssiden for et domæne](

    HTML source:

        <img src="" alt="Oversigtssiden for et domæne" />
        <figcaption>Oversigtssiden for et domæne</figcaption>

    I forgot to mention the version number: I'm on Version 1.3.3 (191).

  3. Support Staff 3 Posted by Brett on 02 Mar, 2012 03:20 PM

    Brett's Avatar

    I'll add some double-insurance to the next version. I can't replicate this issue, but I can force the TOC as high as it will go :).

  4. 4 Posted by wulff on 02 Mar, 2012 03:23 PM

    wulff's Avatar

    Sounds great!

    Also, thanks for a lovely little piece of software :-)

Reply to this discussion

Internal reply

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

Attaching KB article:


Already uploaded files

  • marked-toc.png 62.3 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