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 Violet Evans on 17 May, 2022 02:34 PM

    Violet Evans's Avatar

    Running “Whereis python3” returns that it’s installed in /usr/bin/python3 (which is Python 3.9.12) and also in /opt/homebrew/share/man/man1/python3.1, I also have it installed at /opt/homebrew/bin/python3.9 and /opt/homebrew/share/man/man1/python3.9.1

    I’m actually not sure why I have so many installations, I must have messed something up in homebrew once lol. But Python 3.9.12 is definitely in my PATH, and runs when I run the “python3” command.

    Also, I’m not sure if this helps give more insight, or just adds another issue, but I’ve also noticed that it goes blank when I drag in a Scrivener 3 file.

  8. 8 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.

  9. Support Staff 9 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

  10. 10 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

  11. Support Staff 11 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

  12. 12 Posted by Violet Evans on 27 May, 2022 02:06 AM

    Violet Evans's Avatar

    I replied to an email earlier, but it appears it never got added to the thread for some reason, I apologize. Anyway, “which python3” returns "/opt/homebrew/bin/python3”, and “which python” says “python not found”

    Running “whereis python3” returns that it’s installed in /usr/bin/python3 (which is Python 3.9.12) and also in /opt/homebrew/share/man/man1/python3.1, I also have it installed at /opt/homebrew/bin/python3.9 and /opt/homebrew/share/man/man1/python3.9.1

    I’m actually not sure why I have so many installations, I must have messed something up in homebrew once lol. But Python 3.9.12 is definitely in my PATH, and runs when I run the “python3” command.

  13. 13 Posted by Violet Evans on 27 May, 2022 02:11 AM

    Violet Evans's Avatar

    Sorry, it appears my email replies aren't adding to the thread, I've replied with the answer to your question twice and it hasn't appeared, using the website now. Anyway, “which python3” returns "/opt/homebrew/bin/python3”, and “which python” says “python not found”

    Running “whereis python3” returns that it’s installed in /usr/bin/python3 (which is Python 3.9.12) and also in /opt/homebrew/share/man/man1/python3.1, I also have it installed at /opt/homebrew/bin/python3.9 and /opt/homebrew/share/man/man1/python3.9.1

    I’m actually not sure why I have so many installations, I must have messed something up in homebrew once lol. But Python 3.9.12 is definitely in my PATH, and runs when I run the “python3” command.

  14. 14 Posted by Chris Wu on 27 May, 2022 05:26 AM

    Chris Wu's Avatar

    Hi Brett,

    Thanks for the follow-up. I’m happy to report that Marked is back working for me. I don’t know exactly what I did other than reinstall Marked, reinstall python as well as Xcode. After the installation and restart, I tested it out and it seemed to return back to its usual parameter. Phew!

    Looking forward to nvAlt. Have a good one.

    Take Care.

    God Bless,
    Chris Wu

  15. Support Staff 15 Posted by Brett on 30 May, 2022 03:57 PM

    Brett's Avatar

    @Violet Evans: sorry, your responses did get spammed by the support system, my apologies.

    I think the issue may be that I hardcoded /use/local but on M1 it should be /opt. I’ll work on a fix that takes into account brew installations.

  16. 16 Posted by Violet Evans on 30 May, 2022 04:10 PM

    Violet Evans's Avatar

    That makes sense, I’m glad we could find a solution! Thank you for your help

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