details / summary do not fully expand
Details do not fully expand in the Marked beta.
Something like this:
<p>
<details>
<summary>Show solution</summary>
<pre><code>
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello, playground")
}
</pre></code>
</details>
</p>
produces the attached screenshot, same with embedded Markdown code block with a language set.
'''language
code
'''
(replace '
with actual backticks)
It works if you resize the Marked window.
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
Support Staff 1 Posted by Brett on 28 Jul, 2020 12:31 PM
I assume if you turn off syntax highlighting in preferences it works as expected?
- Brett
2 Posted by Ingmar on 28 Jul, 2020 12:41 PM
Yes, that's correct!
Support Staff 3 Posted by Brett on 28 Jul, 2020 01:01 PM
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?
-Brett
4 Posted by Ingmar on 28 Jul, 2020 02:51 PM
Yes, there is an error, see screenshot attached.
Support Staff 5 Posted by Brett on 29 Jul, 2020 01:34 PM
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)
Thanks,
Brett
6 Posted by Ingmar on 31 Jul, 2020 11:01 AM
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:
Support Staff 7 Posted by Brett on 09 Aug, 2020 05:18 PM
Sorry, that one took me a while to track down. I've found the issue and
it will be fixed in the next update.
Thanks,
Brett
8 Posted by Ingmar on 26 Aug, 2020 06:29 AM
I've installed the new beat and it works perfectly now!
Brett closed this discussion on 25 Sep, 2020 04:21 PM.