custom CSS not applying
// Please enter a detailed description of the issue // Description of the issue:
Marked is not fully loading, or recognizing, a custom style sheet when I "apply" it to a document. In particular, it is not recognizing a change in type face and is simply using the default (Times?). If I delete the custom style sheet from the preferences tab for doing so and then add it back, it works again. If I quit Marked and come back ... the cycle repeats.
// Please enter a list of steps required to reproduce the issue // Steps to reproduce:
// If applicable please attach a sample document that causes the issue for you.
// Configuration (do not edit) Marked 2 1040 (Mac App Store)
macOS Version: 13.1
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
printHeaderTopLeft: LAUDUN - %title
|?||Show this help|
|ESC||Blurs the current field|
|r||Focus the comment reply box|
|^ + ↩||Submit the comment|
You can use
Command ⌘ instead of
Control ^ on Mac
1 Posted by Mark Hedges on 13 Jan, 2023 08:01 PM
Second this. Styles don't work.
2 Posted by john laudun on 13 Jan, 2023 08:25 PM
Okay, so I didn't know this went into a discussion forum. But, second, I came across the page on Creating Custom Styles (https://marked2app.com/help/Writing_Custom_CSS.html), and I'm taking a look at it now to see if perhaps having the CSS structured in a particular way will get things working.
Support Staff 3 Posted by Brett on 13 Jan, 2023 08:58 PM
Would either of the users on this thread care to share their custom style so I can see if there are any errors that might be affecting this? I use custom styles every day and never have an issue.
4 Posted by Mark Hedges on 17 Jan, 2023 02:54 PM
Any style that I pick in the preferences. It doesn't apply. The default style is stuck. This was a fresh installation of the program. Maybe you have some kind of preference file from an old version that the new version didn't create or created incorrectly.
5 Posted by john on 23 Jan, 2023 05:56 PM
Here's the custom style sheet.
Support Staff 6 Posted by Brett on 23 Jan, 2023 07:35 PM
@john style looks fine. I'm going to have to recommend that you delete preferences and reboot to see if that solves the issue.
To delete your preferences with the MAS version of Marked 2:
~/Library/Containers/com.brettterpstra.marked2/Data/Library/Preferences/com.brettterpstra.marked2.plist(and any other files starting with com.brettterpstra.marked2). If you're not sure how to access this folder, open Finder and press ⌘⇧G, then paste "~/Library/Containers/com.brettterpstra.marked2/Data/Library/Preferences/" (without quotes) into the box.
The directions for doing this with the direct version are the same, but the preference file is located in ~/Library/Preferences.