Marked goes blank when CriticMarkup is used

Vi's Avatar

Vi

07 May, 2022 01:54 PM

Marked works as expected when I'm working with a standard MD file, but as soon as I add any CriticMarkup, the renderer goes blank and I can't seem to figure out why. When I check the HTML Source View, it's fine, but it doesn't actually preview anything in the normal view.

  1. Support Staff 1 Posted by Brett on 07 May, 2022 04:42 PM

    Brett's Avatar

    Hi Vi,

    Could you paste the output of Help->Report an Issue and let me know what OS version you're running Marked on?

    Thanks,
    Brett

  2. 2 Posted by Violet Evans on 07 May, 2022 05:11 PM

    Violet Evans's Avatar

    This is the output from “Report an Issue”, and I’m running Monterey 12.3

    // Configuration (do not edit)
    Marked 2 1031 (Mac App Store)
    macOS Version: 12.3
    ---
    additionalMathJaxConfig:
    allowPageBreakInCode: YES
    bookTxtIsLeanpub: NO
    summaryMdIsGitBook: NO
    codeIsPoetry: NO
    codeCanWrap: YES
    collapsibleHeadlines: NO
    convertGithubCheckboxes: YES
    convertGithubEmoji: YES
    convertYAMLToMMD: NO
    defaultMathJaxConfig: TeX-AMS-MML_HTMLorMML
    defaultPreviewStyle: swiss
    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
    mathNumberEquations: NO
    mathNumberEquationsSide: 0
    mathNumberEquationsAMSOnly: 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: NO
    syntaxHighlightOnlyLang: NO
    useCustomMarkdownProcessor: NO
    customMarkdownProcessor:
    useCustomPreprocessor: NO
    customPreprocessor:
    useFirstH1AsPrintTitle: YES

  3. Support Staff 3 Posted by Brett on 09 May, 2022 02:17 PM

    Brett's Avatar

    You may need to install the Xcode Command Line Tools to get CriticMarkup functioning again. It relies on Python, which is no longer included by default as of macOS 12.0. Marked should have asked you to install the tools automatically, but apparently it didn't get triggered. To install the tools, open Terminal, paste the following, then hit return:

    xcode-select --install

    See here for more info: https://www.freecodecamp.org/news/install-xcode-command-line-tools/

    Sorry for the inconvenience. It's quite frustrating that Python is no longer included by default, but I haven't had a chance to fully circumvent Marked's need for it yet.

    -Brett

  4. 4 Posted by Violet Evans on 09 May, 2022 03:33 PM

    Violet Evans's Avatar

    I already have both Xcode and Python installed

  5. Support Staff 5 Posted by Brett on 09 May, 2022 04:25 PM

    Brett's Avatar

    Well that's odd then. I'll have to do a little more digging, will follow up when I've had a chance to test with your setup further.

    Thanks,
    Brett

  6. Support Staff 6 Posted by Brett on 16 May, 2022 02:31 PM

    Brett's Avatar

    Hey, where is Python installed for you? Do you have the python3 executable?

    Thanks,
    Brett

  7. 7 Posted by Kris on 24 May, 2022 05:32 AM

    Kris's Avatar

    I would also like to jump onto this ticket. I'm having the same issue when using critic. It'd be great for any solution. Thanks.

  8. Support Staff 8 Posted by Brett on 24 May, 2022 12:08 PM

    Brett's Avatar

    Kris, can you verify that python is installed for you? See the above thread.

    Thanks,
    Brett

  9. 9 Posted by Chris Wu on 24 May, 2022 07:48 PM

    Chris Wu's Avatar

    Hi Brett,

    Yep! I have a mirror situation like the above. It’s really weird! I love Marked and realized just how important it is for my workflow. Thanks for the excellent app. Hope this can get fixed. In the meantime is there another app that I can use to tide me over until this is resolved?

    Thanks!

    Take Care.

    God Bless,
    Chris Wu

  10. Support Staff 10 Posted by Brett on 26 May, 2022 12:49 PM

    Brett's Avatar

    There's no app I know of on Mac that does what Marked does, though most
    good Markdown editors have a preview, and some (like MultiMarkdown
    Composer) handle CriticMarkup well.

    If anyone on this thread could help me out by telling me:

    1. Do you have Python installed, and if so, was it via the Xcode Command
    Line Utilities? If not, have you tried installing via the Command Line
    Utilities?
    2. If you run `which python3`, what path is given?
    3. How about `which python`?

    Thanks,
    Brett

Reply to this discussion

Internal reply

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

Attaching KB article:

»

Already uploaded files

  • marked-working.png 2.41 MB
  • marked-blank.png 1.96 MB
  • marked-source.png 2.52 MB

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

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