details / summary do not fully expand

Ingmar's Avatar


28 Jul, 2020 09:00 AM

Details do not fully expand in the Marked beta.

Something like this:

<summary>Show solution</summary>

package main

import (

func main() {
    fmt.Println("Hello, playground")


produces the attached screenshot, same with embedded Markdown code block with a language set.


(replace ' with actual backticks)

It works if you resize the Marked window.

  1. Support Staff 1 Posted by Brett on 28 Jul, 2020 12:31 PM

    Brett's Avatar

    I assume if you turn off syntax highlighting in preferences it works as expected?

    - Brett

  2. 2 Posted by Ingmar on 28 Jul, 2020 12:41 PM

    Ingmar's Avatar

    Yes, that's correct!

  3. Support Staff 3 Posted by Brett on 28 Jul, 2020 01:01 PM

    Brett's Avatar

    So your code works properly for me using all of the built-in themes.
    When a details block is expanded, Marked runs a quick JS function that
    resizes the pre block to fit the code. It sounds like that's not
    happening for you. Could you right click on the document and choose
    Inspect Element, then switch to the console tab to see if there are any
    errors showing up?


  4. 4 Posted by Ingmar on 28 Jul, 2020 02:51 PM

    Ingmar's Avatar

    Yes, there is an error, see screenshot attached.

  5. Support Staff 5 Posted by Brett on 29 Jul, 2020 01:34 PM

    Brett's Avatar

    Unfortunately, that's a pretty generic error message that's going to be
    hard to debug without seeing it locally in my debugger. So I need to be
    able to replicate it. Could you please:

    1. Include the output of Help -> Report an Issue
    2. Let me know if you're running any kind of custom processor
    3. Attach a copy of a document that causes the issue for you (and if
    it's every document, just a generic sample section is fine)


  6. 6 Posted by Ingmar on 31 Jul, 2020 11:01 AM

    Ingmar's Avatar

    Sorry, that took a while.

    I'm running a pretty vanilla installation of the beta, so I don't use a custom processor.

    I've attached a generic example Markdown file.

    I also did some further testing:

    • It seems to happen with some specific styles. If I switch styles it sometimes works with the GitHub style and sometimes doesn't.
    • Other styles affected: Amblin, Grump
    • It only happens when syntax highlighting is enabled, the error always gets logged, independently of the style used.
  7. Support Staff 7 Posted by Brett on 09 Aug, 2020 05:18 PM

    Brett's Avatar

    Sorry, that one took me a while to track down. I've found the issue and
    it will be fixed in the next update.


  8. 8 Posted by Ingmar on 26 Aug, 2020 06:29 AM

    Ingmar's Avatar

    I've installed the new beat and it works perfectly now!

  9. Brett closed this discussion on 25 Sep, 2020 04:21 PM.

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

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