Marked 2 beachballing when selecting the "Additional CSS: Edit CSS" button in the Marked 2 preferences
// Please enter a detailed description of the issue // Description of the issue:
Marked 2 beachballing when selecting the "Additional CSS: Edit CSS" button in the Marked 2 preferences
// Please enter a list of steps required to reproduce the issue // Steps to reproduce:
- Open Marked 2
- Click said button
// If applicable please attach a sample document that causes the issue for you.
// Configuration (do not edit) Marked 2 985 (Direct)
macOS Version: 10.15.4
additionalMathJaxConfig:
allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: NO
convertGithubCheckboxes: YES
convertYAMLToMMD: NO
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: 100
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
minimalJavaScript: NO
outlineModeExtensions:
permissionGranted: NO
printHeaderBottomLeft:
printHeaderBottomRight:
printHeaderFirstPage: NO
printFooterFirstPage: NO
printHeaderTopLeft:
printHeaderTopRight:
processHTMLFiles: YES
removeMetadataForPreview: NO
removeYAMLHeaders: NO
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: NO
shouldLoadCritic: NO
syntaxHighlight: YES
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
customMarkdownProcessor:
useCustomPreprocessor: NO
customPreprocessor:
useFirstH1AsPrintTitle: YES
- Sample_of_Marked_2.txt 1.51 MB
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 14 Apr, 2020 02:09 PM
I'm not seeing any such issue on my end. As a random guess, are you
using Dark Mode? Anything unusual about your font setup on your machine?
The only explanation I can think of is something about the CSS window
(and the Advanced Mathjax config window) custom text view causing an
issue.
When you say beachballing, do you mean a full hang that requires a force
quit?
-Brett
2 Posted by IGLy on 14 Apr, 2020 02:32 PM
Dear Brett,
Thank you for getting back to me so quickly.
I'm not using dark mode. And yes, the program freezes completely and has to be force-quit. I can reproduce this even if no document is open. Just open the program, open preferences, click the button.
FontBook does not indicate any font problems but the issue seems to occur only on my account. I have just tested on the Guest account and there this button opens a popover. What data is Marked displaying in this popover, where is it located on the filesystem? Maybe there's some problem with this file?
Best,
Robby
Support Staff 3 Posted by Brett on 14 Apr, 2020 02:37 PM
By default that field is empty, and any contents in it are stored in preferences. If you’ve never opened it before, it should be empty, but it might be worth deleting preferences to see if there’s some corrupt data that might be causing an issue.
Thanks!
Brett
4 Posted by IGLy on 14 Apr, 2020 03:01 PM
This was it. It seems I have used this functionality before. There was some CSS stored for additionalCSS and deleting the key solved the issue. Let me know if you want to have a look at the CSS or at the preferences file itself.
Best,
Robby
Support Staff 5 Posted by Brett on 14 Apr, 2020 03:13 PM
I would actually be curious to see the preference file to see if I could replicate. If you don’t have the “damaged” version still, just the CSS would also be helpful.
Thanks!
Brett
6 Posted by IGLy on 14 Apr, 2020 03:18 PM
Here you go:
Support Staff 7 Posted by Brett on 14 Apr, 2020 03:53 PM
Thanks!
-Brett
8 Posted by IGLy on 16 Mar, 2025 04:48 PM
Dear Brett,
I just want to let you know that the problem still exists with Marked 2.6.46 (1071) on macOS 14.7.4 (23H420). I can always provide a new sample if needed.
Best,
Robby
Support Staff 9 Posted by Brett on 26 Apr, 2025 12:16 AM
Thanks for the update @IGLy. So deleting preferences fixed it for a while but then it came back? Did you update the field before it stopped working again?
10 Posted by IGLy on 26 Apr, 2025 08:02 AM
Deleting the preferences key additionalCSS fixes the issue. Setting it
to this CSS reliably freezes Marked 2 whenever the Edit CSS button is
pressed:
pre {
line-height: 130% !important;
margin-bottom: 3ex !important;
}
td {
border-radius: 0px !important;
}
code {
color: #995555;
padding-left: 0.2ex;
padding-right: 0.2ex;
border-radius: 0.6ex;
}
div.TOC>ul>li:nth-child(1), div.TOC>ul>li:nth-child(2) {
display:none;
}
Best,
Robby
Support Staff 11 Posted by Brett on 26 Apr, 2025 09:55 AM
That's so weird. It doesn't happen for me with the above CSS. This might be an issue with the outdated version of macOS you're running, but I assume there's a reason you're running that and can't change it. But I also can't test on it, so it's going to be a hard issue to track down.
In the meantime, could you try adding the same CSS to an actual Style and see if any issues happen with that?
12 Posted by IGLy on 26 Apr, 2025 10:12 AM
I must have tried that earlier. The exact same CSS already was at the
end of by "Amblin Customised.css".
With said CSS in additionalCSS Marked 2 freezes regardless of whether
the CSS code exists at the end of "Amblin Customised.css".
Without additionalCSS I can press Edit CSS and the built-in CSS Editor
shows up.
Entering some other CSS like
body {
background-color: green;
}
also keeps Marked 2 happy.
As the issue is 100% reproducible here I can provide a spin dump so you
can see where exactly Marked 2 is stuck. Maybe that helps?
- Robby
Support Staff 13 Posted by Brett on 26 Apr, 2025 04:03 PM
Yes, that might be helpful.
14 Posted by IGLy on 26 Apr, 2025 04:53 PM
Here you go. I have attached a compressed version of the process sample.
Note: When trying to reproduce the issue it is important to set the
additionalCSS and restart Marked 2. Only when started with this
additionalCSS user default the program will hang when you click the
Additional CSS: Edit CSS button in the settings.
-Robby
Support Staff 15 Posted by Brett on 27 Apr, 2025 05:54 PM
Still no hang after restarting Marked with that CSS. I'll examine the spindump.
16 Posted by Ben on 27 Jun, 2025 11:17 AM
FYI, Exact same problem here. Also when using the Ambin theme I notice, though, whether that's relevant, I'm not sure (The default Amblin line height cuts the top off headings). Up-to-date macOS, resources no issue.
Removing the additional CSS directly from the plist file seems to have resolved the freeze, even when adding the exact same CSS back in via the newly functioning "Edit CSS" button, for now anyhow.