macdown-gistit.plugin
in ~/Library/Application Support/MacDown/PlugIns
..plugin
. MacDown searches ~/Library/Application Support/MacDown/PlugIns
, and builds menu items for loadable bundles inside the directory. A plug-in is invoked when the user clicks on its corresponding menu item.NSUserDefaults
or other persistence solutions.- (NSString *)name
- (BOOL)run:(id)sender
sender
argument indicates the UI item that triggers the invocation—usually the NSMenuItem
object the user clicked on, but could also be nil
if the plug-in is triggered programmatically.NSDocumentController
API. Refer to the official documentation for more detail.@property (nonatomic, readwrite) NSString *markdown
@property (nonatomic, readonly) NSString *html