custom CSS not applying

john laudun's Avatar

john laudun

13 Jan, 2023 06:13 PM

// 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

allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
collapsibleHeadlines: YES
convertGithubCheckboxes: YES
convertGithubEmoji: YES
convertYAMLToMMD: NO
defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
defaultPreviewStyle: swiss
defaultProcessor: MultiMarkdown
enableMiniMap: YES
excludeBlockQuotesFromCounts: NO
excludeFootnotesFromCounts: NO
excludeVerbatimFromCounts: NO
excludeCaptionsFromCounts: NO
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
githubNewlines: YES
h1IsPageBreak: NO
h2IsPageBreak: NO
hrIsPageBreak: NO
includeMathJax: NO
includeKatex: NO
limitTextWidth: NO
mathNumberEquations: NO
mathNumberEquationsSide: 0
mathNumberEquationsAMSOnly: NO
minimalJavaScript: NO
permissionGranted: NO
printHeaderFirstPage: NO
printFooterFirstPage: NO
printHeaderTopLeft: LAUDUN - %title
printHeaderTopRight: %page
processHTMLFiles: YES
removeMetadataForPreview: NO
removeYAMLHeaders: NO
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: NO
shouldLoadCritic: NO
syntaxHighlight: YES
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
useCustomPreprocessor: NO
useFirstH1AsPrintTitle: YES

  1. 1 Posted by Mark Hedges on 13 Jan, 2023 08:01 PM

    Mark Hedges's Avatar

    Second this. Styles don't work.

  2. 2 Posted by john laudun on 13 Jan, 2023 08:25 PM

    john laudun's Avatar

    Okay, so I didn't know this went into a discussion forum. But, second, I came across the page on Creating Custom Styles (, 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.

  3. Support Staff 3 Posted by Brett on 13 Jan, 2023 08:58 PM

    Brett's Avatar

    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. 4 Posted by Mark Hedges on 17 Jan, 2023 02:54 PM

    Mark Hedges's Avatar

    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. 5 Posted by john on 23 Jan, 2023 05:56 PM

    john's Avatar

    Here's the custom style sheet.

  6. Support Staff 6 Posted by Brett on 23 Jan, 2023 07:35 PM

    Brett's Avatar

    @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:

    1. Quit Marked 2
    2. Delete the file at ~/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.
    3. Reboot the computer (this is important as macOS aggressively caches preferences and may just restore the deleted file without your knowledge.
    4. Launch Marked 2

    The directions for doing this with the direct version are the same, but the preference file is located in ~/Library/Preferences.

Reply to this discussion

Internal reply

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

Attaching KB article:


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