CriticMarkup not rendered

Dean's Avatar


22 Sep, 2023 10:01 AM

Using Marked 2 v2.6.25. Markdown documents with CriticMarkup is rendered empty.


This is a {>>test<<} md document with a comment.
  1. Support Staff 1 Posted by Brett on 22 Sep, 2023 12:30 PM

    Brett's Avatar

    You need to install the Command Line Tools.


    On 22 Sep 2023, at 5:03, Dean wrote:

  2. 2 Posted by Dean on 22 Sep, 2023 08:41 PM

    Dean's Avatar

    Actually, Command Line Tools already is installed.

    macOS Ventura 13.6 (22G120)

    $ xcode-select --install 
    xcode-select: error: command line tools are already installed, use "Software Update" in System Settings to install updates

    It's also already updated.

  3. Support Staff 3 Posted by Brett on 22 Sep, 2023 09:44 PM

    Brett's Avatar

    If you open Terminal and run:

    which python

    What does it return?


    On 22 Sep 2023, at 15:41, Dean wrote:

  4. 4 Posted by Dean on 24 Sep, 2023 04:44 PM

    Dean's Avatar

    which python

    What does it return?


    Btw. the system Python is

    There's no /usr/bin/python nor python2 installed.
    I created a symlink named python pointing to python3, nothing changed in Marked 2.

  5. Support Staff 5 Posted by Brett on 25 Sep, 2023 01:30 PM

    Brett's Avatar

    Marked should recognize the /usr/bin/python3 binary. This is odd. Could
    you please send me the output of Help->Report an Issue?


    On 24 Sep 2023, at 11:43, Dean wrote:

  6. Support Staff 6 Posted by Brett on 25 Sep, 2023 01:30 PM

    Brett's Avatar

    Also attach a sample file containing CriticMarkup that demonstrates the
    issue for you, please.

    On 24 Sep 2023, at 11:43, Dean wrote:

  7. 7 Posted by Dean on 25 Sep, 2023 04:31 PM

    Dean's Avatar


    Marked should recognize the /usr/bin/python3 binary. This is odd. Could you please send me the output of Help->Report an Issue?

    See below.

    Also attach a sample file containing CriticMarkup that demonstrates the issue for you, please.



    // Please enter a detailed description of the issue // Description of the issue:

    As reported at ,
    Markdown documents with CriticMarkup is rendered empty. (Using Marked 2 v2.6.25., with the latest XCode (Version 14.3.1 (14E300c)) and Command Line Tools installed.)

    /usr/bin/python3 is there (version 3.9.6) and /usr/bin is in $PATH. which python3 points at /usr/bin/python3. which python returns nothing.

    // Please enter a list of steps required to reproduce the issue // Steps to reproduce:

    1. Create a markdown document with CriticMarkup (like the one with the content below).
    2. Open it in Marked 2 with CriticMarkup enabled.
    3. The document is rendered empty.

    // If applicable please attach a sample document that causes the issue for you.

    This is a {>>test<<} md document with a comment.

    // Configuration (do not edit) Marked 2 1046 (Mac App Store)

    macOS Version: 13.6

    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
    permissionGranted: NO
    printHeaderFirstPage: NO
    printFooterFirstPage: NO
    processHTMLFiles: YES
    removeMetadataForPreview: NO
    removeYAMLHeaders: NO
    scrollToEdit: YES
    shouldDetectCritic: YES
    shouldHighlightMarkupErrors: NO
    shouldLoadCritic: NO
    syntaxHighlight: NO
    syntaxHighlightOnlyLang: NO
    useCustomMarkdownProcessor: NO
    useCustomPreprocessor: NO
    useFirstH1AsPrintTitle: YES

  8. Support Staff 8 Posted by Brett on 25 Sep, 2023 05:19 PM

    Brett's Avatar

    Could you go to Preferences->Advanced and set debug mode at the bottom
    to "All" then open the debug log from Help->Open Debug Log and see if
    there are any messages when loading your criticmarkup test?

    Your test file loads fine for me and I get the tabbed Critic interface,
    so I need to figure out where the script is failing.


    On 25 Sep 2023, at 11:30, Dean wrote:

  9. 9 Posted by Dean on 25 Sep, 2023 05:49 PM

    Dean's Avatar

    See the attached file.

  10. Support Staff 10 Posted by Brett on 25 Sep, 2023 06:05 PM

    Brett's Avatar

    Ok, that gives me a little to go on. I’ll need to do some debugging and may need you to run a test build of the app for more info. Will try to get this sorted this week.

    On Sep 25, 2023 at 12:49 PM -0500, Dean <[email blocked]>, wrote:

  11. 11 Posted by Dean on 21 Oct, 2023 11:55 PM

    Dean's Avatar

    Any update?

  12. Support Staff 12 Posted by Brett on 24 Oct, 2023 02:42 PM

    Brett's Avatar

    Not yet. Just got through some Sonoma madness and things seem to have settled down, so I can take a closer look at this this week. For some reason the CriticMarkup processor is returning an empty result. Could you try this in Terminal?

    command cat | python3 "/Applications/Marked"`

    Replacing with a path to a Markdown file containing CriticMarkup. Just curious if the error is happening at the script level or not.

    (Depending on which version of Marked you have installed, the path to may change. For Setapp it will be /Applications/Setapp/

  13. Support Staff 13 Posted by Brett on 02 Nov, 2023 03:34 PM

    Brett's Avatar

    I have someone on my forum reporting the same thing and gave him a test build to try out. Have you had a chance to run that command line test yet?

  14. Support Staff 14 Posted by Brett on 06 Nov, 2023 08:10 PM

    Brett's Avatar

    I just published v2.6.31. When it's avaialable on your update channel
    (Should be ready now for Paddle customers, in review for MAS and
    Setapp), let me know if it solves the issue for you.


    On 21 Oct 2023, at 18:55, Dean wrote:

  15. 15 Posted by Dean on 08 Nov, 2023 08:04 AM

    Dean's Avatar

    Unfortunately, it didn't work.
    (I appreciate your help, Brett. Thanks for your hard work!)

    Apparently the script is fine:

    command cat /Users/daisukesakurai/Downloads/ | python3 "/Applications/Marked" This is a test md document with a comment..

    which python3 returns /usr/bin/python.

    There's an additional complication due to a macOS Sonoma bug, but it's such a mess I'll first check what's going on in my machine. I'll come back. Please wait...

  16. Support Staff 16 Posted by Brett on 08 Nov, 2023 12:59 PM

    Brett's Avatar

    you created that /usr/bin/python as a symlink, didn't you? What was the original location of python3?

  17. 17 Posted by Dean on 09 Nov, 2023 07:33 AM

    Dean's Avatar

    you created that /usr/bin/python as a symlink, didn't you?

    Actually, no. It's done by Apple. I.e. /usr/bin/python3 is the Python installed by Apple (
    The official Python doc confirms this:
    It's also not a symlink.

    Another thing to note is that there's no /usr/bin/python (i.e. without the suffix 3). This is a bug in XCode as discussed here:
    People in the forum fixed the problem by running some XCode command. Sadly, it doesn't work for me.

    I'm running out of ideas on how I could fix this on my side.

    Can you somehow allow /usr/bin/python3 or /opt/bin/local/python3 as the python to be used? The latter is actually a symlink created by MacPorts. Another idea is to find the user-set python3 from the PATH environment variable, or just let the user specify a custom path to python.

  18. Support Staff 18 Posted by Brett on 09 Nov, 2023 12:38 PM

    Brett's Avatar

    Marked does look for /usr/bin/python3. In your last email you said
    `which python` revealed /usr/bin/python. Was that a mistake?

    On 9 Nov 2023, at 1:33, Dean wrote:

  19. 19 Posted by Dean on 10 Nov, 2023 12:43 AM

    Dean's Avatar

    which python3 returns /usr/bin/python.

    Yes, this one is a mistake. It's /usr/bin/python3. Apologies.

  20. Support Staff 20 Posted by Brett on 10 Nov, 2023 02:48 PM

    Brett's Avatar

    I'm running out of things to try. Marked definitely looks for /usr/bin/python3 after checking for /opt/homebrew/bin/python and the older Framework installation (which doesn't exist on Sonoma). And the script is working from the command line…

    Adding /opt/homebrew/bin to Marked's checks fixed this issue for the user on the forum, so I still believe something is amiss with Python in your case, but I can't figure out what or why your install would be any different. I'll try to put together a build with some more verbose logging to see if we can figure out where it's going wrong.

  21. 21 Posted by Dean on 11 Nov, 2023 01:22 AM

    Dean's Avatar

    Thank you.
    I will wait for your build with the log.


    Adding /opt/homebrew/bin to Marked's checks fixed this issue for the user on the forum

    This is not relevant to me since I don't have homebrew installed.

    A possibility is that pre-installed packages for /usr/bin/python3 of Sonoma might be conflicting with something used by Marked 2.

    Here's the list of pre-installed packages given by /usr/bin/pip3:

    pip3 freeze altgraph @ file:///System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/
    future @ file:///System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/
    macholib @ file:///System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/
    six @ file:///System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot11/ActiveBuildRoot/Library/Caches/

    Here's everything in the site-package directory (My /usr/bin/python3 has only one site-package directory):

    ls /Applications/ README.txt future past six-1.15.0.dist-info
    _distutils_hack future-0.18.2.dist-info pip
    altgraph libfuturize pip-21.2.4.dist-info wheel
    altgraph-0.17.2.dist-info libpasteurize pkg_resources wheel-0.37.0.dist-info
    bin macholib setuptools
    distutils-precedence.pth macholib-1.15.2.dist-info setuptools-58.0.4.dist-info

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