There’s a new version of Marked 2 out (available on all channels) that adds some important fixes and a couple of new features.
Streaming Preview
First off, I fixed the Streaming Preview for everybody. Every time I fixed it to work with The Archive, I broke it for Drafts, and so on. I’m certain I’ve solve the problem for both use cases now. I could be proven wrong, but extensive testing and confirmation from bug testers has me pretty sure. So now you can use the streaming feature of apps like The Archive and Drafts without issue.
I also did some cleanup of the Preferences window while I was in there, but that’s purely aesthetic. Someday (probably sooner than later) I’ll revamp the whole preference system to use a sidebar for the pane selection like System Settings does on macOS these days.
Custom (Internal) Processors
The new features I added are around custom processors, kind of. Previously, you could have any processor return just the string “NOCUSTOM” to skip using the custom processor and resort to using the default internal processor, either MultiMarkdown v5 or Discount (GFM). Now you can also return “MULTIMARKDOWN” (or MMD) or “DISCOUNT” (or GFM) to specify exactly which internal processor to use.
The change makes it easy to develop custom processors that can still have different rendering without having to do any of the rendering using command line tools. It also makes it to handle processing using Conductor by simply using command: echo MMD
in a track.
In addition to the Custom Processor return strings, you can also use metadata:
Custom Processor: MultiMarkdown
Or just:
processor: gfm
This allows per-document settings. In Conductor, you can create a preprocessor track that uses the addMeta
filter:
- condition: phase is pre
tracks:
- condition: file name is README.md
filter: addMeta(processor, gfm)
Or implement it in any way that works for you, even manually or as part of a TextExpander/Blaze snippet.
The update is available now, so go get it! “Check for Updates” in the direct version, and Setapp and the Mac App Store should update you automatically. Look for version 2.6.39 or newer.
If you’ve been using Marked 2 for years, you may have noticed you’ve never had to pay an upgrade fee for new features. Someday I’ll put out a v3 and bill for it, or (heaven forbid) switch to subscriptions, but for now if you want to support development, feel free to donate or, better yet, become a supporter!
By the way, if you’re using Conductor make sure you have the latest version (1.0.24 as of this writing), there have been some important bugfixes in the last few days.