Yes, when I run cat file.md|myscript.sh I get the expected result.
In following the instructions for the "Report an Issue" and trying to build a reproduction I can include I may have stumbled on my issue. The test file I had picked was the output of a script I was working on and yesterday I didn't notice that it was quite a large file.
My preprocessor works fine when I open smaller files.
I've included my configuration, my script, and a test file which will trigger this issue. If you remove one character from the test file it will process normally. (edit: I couldn't attach my files so I created a Gist instead.)
I went ahead with these questions in case it's helpful, however knowing it's a file size issue I can easily work around this and look forward to the next update with native emoji support.
Thanks again for the quick reply, and thanks for Marked, it's such an excellent app.
// Configuration (do not edit) Marked 2 1010 (Direct)
macOS Version: 10.15.7
defaultProcessor: Discount (GFM)
folderPreviewExtensionsArray: md, markdown, txt, mdown, html, opml
Brett on 21 Jan, 2021 08:49 PM
Ok, I can get the same "loading" hang using your script and test files.
It's weird because the file loads fine without the preprocessor (or with
any of my usual preprocessors). On the command line your script does
exactly what it's supposed to do, and without any delay. I'm not sure
what's choking the process up... I'll look into it further.