Marked goes blank when CriticMarkup is used

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 Posted by Brett on 07 May, 2022 04:42 PM

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. Posted by Violet Evans on 07 May, 2022 05:11 PM

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
---
allowPageBreakInCode: YES
bookTxtIsLeanpub: NO
summaryMdIsGitBook: NO
codeIsPoetry: NO
codeCanWrap: YES
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
printFooterFirstPage: NO
processHTMLFiles: YES
scrollToEdit: YES
shouldDetectCritic: YES
shouldHighlightMarkupErrors: NO
syntaxHighlight: NO
syntaxHighlightOnlyLang: NO
useCustomMarkdownProcessor: NO
customMarkdownProcessor:
useCustomPreprocessor: NO
customPreprocessor:
useFirstH1AsPrintTitle: YES

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

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

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. Posted by Violet Evans on 09 May, 2022 03:33 PM

I already have both Xcode and Python installed

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

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 Posted by Brett on 16 May, 2022 02:31 PM

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

Thanks,
Brett

7. Posted by Violet Evans on 17 May, 2022 02:34 PM

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. Posted by Kris on 24 May, 2022 05:32 AM

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 Posted by Brett on 24 May, 2022 12:08 PM

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

Thanks,
Brett

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

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 Posted by Brett on 26 May, 2022 12:49 PM

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. Posted by Violet Evans on 27 May, 2022 02:06 AM

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. Posted by Violet Evans on 27 May, 2022 02:11 AM

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. Posted by Chris Wu on 27 May, 2022 05:26 AM

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 Posted by Brett on 30 May, 2022 03:57 PM

@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. Posted by Violet Evans on 30 May, 2022 04:10 PM

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

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

»

• 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 Blurs the current field

Comment Form

r Focus the comment reply box Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

 31 Jan, 2023 05:10 PM Red Dash on Top of Window 27 Jan, 2023 01:05 AM marked exits on launch 25 Jan, 2023 01:04 PM Offer to purchase grammar add-on not displayed 23 Jan, 2023 07:35 PM custom CSS not applying 06 Jan, 2023 09:58 PM Preview render correct; HTML output isn't

Recent Articles

 Intra-document links in exported PDFs Using Ulysses with Marked Fenced code blocks inside indented code blocks Using JavaScript in Marked Custom CSS: Writing custom CSS for Marked