mirror of
https://github.com/MacDownApp/macdown.git
synced 2026-05-17 12:40:37 +00:00
+41
-39
@@ -1,59 +1,60 @@
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
CFPropertyList (2.3.5)
|
||||
activesupport (4.2.10)
|
||||
CFPropertyList (3.0.0)
|
||||
activesupport (4.2.11.1)
|
||||
i18n (~> 0.7)
|
||||
minitest (~> 5.1)
|
||||
thread_safe (~> 0.3, >= 0.3.4)
|
||||
tzinfo (~> 1.1)
|
||||
addressable (2.4.0)
|
||||
backports (3.10.3)
|
||||
atomos (0.1.3)
|
||||
backports (3.12.0)
|
||||
claide (1.0.2)
|
||||
cocoapods (1.3.1)
|
||||
cocoapods (1.6.1)
|
||||
activesupport (>= 4.0.2, < 5)
|
||||
claide (>= 1.0.2, < 2.0)
|
||||
cocoapods-core (= 1.3.1)
|
||||
cocoapods-deintegrate (>= 1.0.1, < 2.0)
|
||||
cocoapods-downloader (>= 1.1.3, < 2.0)
|
||||
cocoapods-core (= 1.6.1)
|
||||
cocoapods-deintegrate (>= 1.0.2, < 2.0)
|
||||
cocoapods-downloader (>= 1.2.2, < 2.0)
|
||||
cocoapods-plugins (>= 1.0.0, < 2.0)
|
||||
cocoapods-search (>= 1.0.0, < 2.0)
|
||||
cocoapods-stats (>= 1.0.0, < 2.0)
|
||||
cocoapods-trunk (>= 1.2.0, < 2.0)
|
||||
cocoapods-trunk (>= 1.3.1, < 2.0)
|
||||
cocoapods-try (>= 1.1.0, < 2.0)
|
||||
colored2 (~> 3.1)
|
||||
escape (~> 0.0.4)
|
||||
fourflusher (~> 2.0.1)
|
||||
fourflusher (>= 2.2.0, < 3.0)
|
||||
gh_inspector (~> 1.0)
|
||||
molinillo (~> 0.5.7)
|
||||
molinillo (~> 0.6.6)
|
||||
nap (~> 1.0)
|
||||
ruby-macho (~> 1.1)
|
||||
xcodeproj (>= 1.5.1, < 2.0)
|
||||
cocoapods-core (1.3.1)
|
||||
ruby-macho (~> 1.4)
|
||||
xcodeproj (>= 1.8.1, < 2.0)
|
||||
cocoapods-core (1.6.1)
|
||||
activesupport (>= 4.0.2, < 6)
|
||||
fuzzy_match (~> 2.0.4)
|
||||
nap (~> 1.0)
|
||||
cocoapods-deintegrate (1.0.1)
|
||||
cocoapods-downloader (1.1.3)
|
||||
cocoapods-deintegrate (1.0.4)
|
||||
cocoapods-downloader (1.2.2)
|
||||
cocoapods-plugins (1.0.0)
|
||||
nap
|
||||
cocoapods-search (1.0.0)
|
||||
cocoapods-stats (1.0.0)
|
||||
cocoapods-trunk (1.3.0)
|
||||
cocoapods-stats (1.1.0)
|
||||
cocoapods-trunk (1.3.1)
|
||||
nap (>= 0.8, < 2.0)
|
||||
netrc (~> 0.11)
|
||||
cocoapods-try (1.1.0)
|
||||
colored2 (3.1.2)
|
||||
concurrent-ruby (1.0.5)
|
||||
concurrent-ruby (1.1.5)
|
||||
escape (0.0.4)
|
||||
ethon (0.11.0)
|
||||
ethon (0.12.0)
|
||||
ffi (>= 1.3.0)
|
||||
faraday (0.13.1)
|
||||
faraday (0.15.4)
|
||||
multipart-post (>= 1.2, < 3)
|
||||
faraday_middleware (0.12.2)
|
||||
faraday_middleware (0.13.1)
|
||||
faraday (>= 0.7.4, < 1.0)
|
||||
ffi (1.9.18)
|
||||
fourflusher (2.0.1)
|
||||
ffi (1.10.0)
|
||||
fourflusher (2.2.0)
|
||||
fuzzy_match (2.0.4)
|
||||
gh (0.15.1)
|
||||
addressable (~> 2.4.0)
|
||||
@@ -62,18 +63,18 @@ GEM
|
||||
multi_json (~> 1.0)
|
||||
net-http-persistent (~> 2.9)
|
||||
net-http-pipeline
|
||||
gh_inspector (1.0.3)
|
||||
highline (1.7.8)
|
||||
i18n (0.9.1)
|
||||
gh_inspector (1.1.3)
|
||||
highline (1.7.10)
|
||||
i18n (0.9.5)
|
||||
concurrent-ruby (~> 1.0)
|
||||
json (2.1.0)
|
||||
json (2.2.0)
|
||||
launchy (2.4.3)
|
||||
addressable (~> 2.3)
|
||||
minitest (5.10.3)
|
||||
molinillo (0.5.7)
|
||||
multi_json (1.12.2)
|
||||
minitest (5.11.3)
|
||||
molinillo (0.6.6)
|
||||
multi_json (1.13.1)
|
||||
multipart-post (2.0.0)
|
||||
nanaimo (0.2.3)
|
||||
nanaimo (0.2.6)
|
||||
nap (1.1.0)
|
||||
net-http-persistent (2.9.4)
|
||||
net-http-pipeline (1.0.1)
|
||||
@@ -81,9 +82,9 @@ GEM
|
||||
pusher-client (0.6.2)
|
||||
json
|
||||
websocket (~> 1.0)
|
||||
ruby-macho (1.1.0)
|
||||
ruby-macho (1.4.0)
|
||||
thread_safe (0.3.6)
|
||||
travis (1.8.8)
|
||||
travis (1.8.9)
|
||||
backports
|
||||
faraday (~> 0.9)
|
||||
faraday_middleware (~> 0.9, >= 0.9.1)
|
||||
@@ -94,14 +95,15 @@ GEM
|
||||
typhoeus (~> 0.6, >= 0.6.8)
|
||||
typhoeus (0.8.0)
|
||||
ethon (>= 0.8.0)
|
||||
tzinfo (1.2.4)
|
||||
tzinfo (1.2.5)
|
||||
thread_safe (~> 0.1)
|
||||
websocket (1.2.5)
|
||||
xcodeproj (1.5.3)
|
||||
CFPropertyList (~> 2.3.3)
|
||||
websocket (1.2.8)
|
||||
xcodeproj (1.8.2)
|
||||
CFPropertyList (>= 2.3.3, < 4.0)
|
||||
atomos (~> 0.1.3)
|
||||
claide (>= 1.0.2, < 2.0)
|
||||
colored2 (~> 3.1)
|
||||
nanaimo (~> 0.2.3)
|
||||
nanaimo (~> 0.2.6)
|
||||
|
||||
PLATFORMS
|
||||
ruby
|
||||
@@ -111,4 +113,4 @@ DEPENDENCIES
|
||||
travis (~> 1.8, >= 1.8.6)
|
||||
|
||||
BUNDLED WITH
|
||||
1.16.0
|
||||
1.17.1
|
||||
|
||||
@@ -884,6 +884,7 @@
|
||||
1FA6DE1D1941CC9E000409FB /* Sources */,
|
||||
1FA6DE1E1941CC9E000409FB /* Frameworks */,
|
||||
1FF16580199A6C950080D9A5 /* Fetch Prism Resources */,
|
||||
E7FD807B2106CA8F0087F0A8 /* Transpile Styles */,
|
||||
1FA6DE1F1941CC9E000409FB /* Resources */,
|
||||
1F8A82A81952F19B00B6BF69 /* Update Build Number */,
|
||||
905EF1B6196164E300FC3CE9 /* Copy Command Line Utility */,
|
||||
@@ -909,8 +910,6 @@
|
||||
1FA6DE411941CC9E000409FB /* Sources */,
|
||||
1FA6DE421941CC9E000409FB /* Frameworks */,
|
||||
1FA6DE431941CC9E000409FB /* Resources */,
|
||||
9041D3A827C49F34399D813E /* [CP] Embed Pods Frameworks */,
|
||||
DF04CC0F24ACD058236B0705 /* [CP] Copy Pods Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
@@ -930,7 +929,6 @@
|
||||
905EF1A3196164CA00FC3CE9 /* Sources */,
|
||||
905EF1A4196164CA00FC3CE9 /* Frameworks */,
|
||||
905EF1A5196164CA00FC3CE9 /* Copy Files */,
|
||||
2B0BC8078DAD9D2E3F7D6027 /* [CP] Copy Pods Resources */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
@@ -962,6 +960,7 @@
|
||||
developmentRegion = English;
|
||||
hasScannedForEncodings = 0;
|
||||
knownRegions = (
|
||||
English,
|
||||
en,
|
||||
Base,
|
||||
sv,
|
||||
@@ -978,6 +977,11 @@
|
||||
"ko-KR",
|
||||
"pt-BR",
|
||||
"nl-NL",
|
||||
"nb-NO",
|
||||
tr,
|
||||
"de-DE",
|
||||
"sk-SK",
|
||||
et,
|
||||
);
|
||||
mainGroup = 1FA6DE181941CC9E000409FB;
|
||||
productRefGroup = 1FA6DE221941CC9E000409FB /* Products */;
|
||||
@@ -1054,16 +1058,16 @@
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${SRCROOT}/Pods/Target Support Files/Pods-MacDown/Pods-MacDown-resources.sh",
|
||||
"${PODS_ROOT}/Target Support Files/Pods-MacDown/Pods-MacDown-resources.sh",
|
||||
"${PODS_ROOT}/MASPreferences/Framework/en.lproj/MASPreferencesWindow.xib",
|
||||
);
|
||||
name = "[CP] Copy Pods Resources";
|
||||
outputPaths = (
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}",
|
||||
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/MASPreferencesWindow.nib",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MacDown/Pods-MacDown-resources.sh\"\n";
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-MacDown/Pods-MacDown-resources.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
1F8A82A81952F19B00B6BF69 /* Update Build Number */ = {
|
||||
@@ -1096,21 +1100,6 @@
|
||||
shellScript = "SOURCE=\"$PWD/Dependency/prism\"\nTARGET=\"$PWD/MacDown/Resources/Prism\"\nrm -rf \"$TARGET\"\nmkdir -p \"$TARGET\"\ncp -r \"$SOURCE/components\" \"$TARGET\"\ncp -r \"$SOURCE/themes\" \"$TARGET\"\ncp -r \"$SOURCE/plugins\" \"$TARGET\"\ncp -r \"$SOURCE/components.js\" \"$TARGET\"";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
2B0BC8078DAD9D2E3F7D6027 /* [CP] Copy Pods Resources */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "[CP] Copy Pods Resources";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-macdown-cmd/Pods-macdown-cmd-resources.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
655CCD821E310F9767572216 /* [CP] Check Pods Manifest.lock */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
@@ -1147,21 +1136,6 @@
|
||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
9041D3A827C49F34399D813E /* [CP] Embed Pods Frameworks */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "[CP] Embed Pods Frameworks";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MacDownTests/Pods-MacDownTests-frameworks.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
B4334ECDC0751C835C1600D7 /* [CP] Check Pods Manifest.lock */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
@@ -1186,7 +1160,7 @@
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${SRCROOT}/Pods/Target Support Files/Pods-MacDown/Pods-MacDown-frameworks.sh",
|
||||
"${PODS_ROOT}/Target Support Files/Pods-MacDown/Pods-MacDown-frameworks.sh",
|
||||
"${PODS_ROOT}/Sparkle/Sparkle.framework",
|
||||
"${PODS_ROOT}/Sparkle/Sparkle.framework.dSYM",
|
||||
);
|
||||
@@ -1197,22 +1171,22 @@
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MacDown/Pods-MacDown-frameworks.sh\"\n";
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-MacDown/Pods-MacDown-frameworks.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
DF04CC0F24ACD058236B0705 /* [CP] Copy Pods Resources */ = {
|
||||
E7FD807B2106CA8F0087F0A8 /* Transpile Styles */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputPaths = (
|
||||
);
|
||||
name = "[CP] Copy Pods Resources";
|
||||
name = "Transpile Styles";
|
||||
outputPaths = (
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-MacDownTests/Pods-MacDownTests-resources.sh\"\n";
|
||||
shellScript = "make -C \"$PROJECT_DIR/Tools/GitHub-style-generator/\"";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Scheme
|
||||
LastUpgradeVersion = "0920"
|
||||
LastUpgradeVersion = "1020"
|
||||
version = "1.3">
|
||||
<BuildAction
|
||||
parallelizeBuildables = "YES"
|
||||
@@ -26,7 +26,6 @@
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
language = ""
|
||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
||||
<Testables>
|
||||
<TestableReference
|
||||
@@ -56,7 +55,6 @@
|
||||
buildConfiguration = "Debug"
|
||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
||||
language = ""
|
||||
launchStyle = "0"
|
||||
useCustomWorkingDirectory = "NO"
|
||||
ignoresPersistentStateOnLaunch = "NO"
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>BuildSystemType</key>
|
||||
<string>Original</string>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -117,6 +117,71 @@ NS_INLINE void treat()
|
||||
[invocation invoke];
|
||||
#pragma clang diagnostic pop
|
||||
}
|
||||
[[NSAppleEventManager sharedAppleEventManager]
|
||||
setEventHandler:self
|
||||
andSelector:@selector(openUrlSchemeAppleEvent:withReplyEvent:)
|
||||
forEventClass:kInternetEventClass andEventID:kAEGetURL];
|
||||
}
|
||||
|
||||
// Open a file from a browser with url of the form :
|
||||
// "x-macdown://open?url=file:///path/to/a/file&line=123&column=45"
|
||||
- (void)openUrlSchemeAppleEvent:(NSAppleEventDescriptor *)event
|
||||
withReplyEvent:(NSAppleEventDescriptor *)reply
|
||||
{
|
||||
NSString *urlString = [[event paramDescriptorForKeyword:keyDirectObject] stringValue];
|
||||
if (!urlString) {
|
||||
return;
|
||||
}
|
||||
NSURL *url = [[NSURL alloc] initWithString:urlString];
|
||||
if (!url) {
|
||||
return;
|
||||
}
|
||||
NSURLComponents *urlComponents = [NSURLComponents componentsWithURL:url
|
||||
resolvingAgainstBaseURL:NO];
|
||||
if (!urlComponents) {
|
||||
return;
|
||||
}
|
||||
NSString *host = urlComponents.host;
|
||||
if (!host || ![host isEqualToString:@"open"]) {
|
||||
return;
|
||||
}
|
||||
NSArray *queryItems = urlComponents.queryItems;
|
||||
if (!queryItems) {
|
||||
return;
|
||||
}
|
||||
NSString *fileParam = [self valueForKey:@"url" fromQueryItems:queryItems];
|
||||
if (!fileParam) {
|
||||
return;
|
||||
}
|
||||
// FIXME: Could not figure out how to place the insertion point at a given
|
||||
// line and column.
|
||||
/* Unused */ NSString *lineParam = [self valueForKey:@"line"
|
||||
fromQueryItems:queryItems];
|
||||
/* Unused */ NSString *columnParam = [self valueForKey:@"column"
|
||||
fromQueryItems:queryItems];
|
||||
NSLog(@"%@:%@:%@", fileParam, lineParam, columnParam);
|
||||
|
||||
NSURL *target = [NSURL URLWithString:fileParam];
|
||||
if (!target) {
|
||||
return;
|
||||
}
|
||||
NSDocumentController *c = [NSDocumentController sharedDocumentController];
|
||||
[c openDocumentWithContentsOfURL:target display:YES completionHandler:
|
||||
^(NSDocument *document, BOOL wasOpen, NSError *error) {
|
||||
if (!document || wasOpen || error)
|
||||
return;
|
||||
NSRect frame = [NSScreen mainScreen].visibleFrame;
|
||||
for (NSWindowController *wc in document.windowControllers)
|
||||
[wc.window setFrame:frame display:YES];
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
- (NSString *)valueForKey:(NSString *)key fromQueryItems:(NSArray *)queryItems
|
||||
{
|
||||
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"name=%@", key];
|
||||
NSURLQueryItem *queryItem = [[queryItems filteredArrayUsingPredicate:predicate] firstObject];
|
||||
return queryItem.value;
|
||||
}
|
||||
|
||||
- (MPPreferences *)preferences
|
||||
@@ -268,19 +333,19 @@ NS_INLINE void treat()
|
||||
|
||||
- (void)openPendingPipedContent {
|
||||
NSDocumentController *c = [NSDocumentController sharedDocumentController];
|
||||
|
||||
|
||||
if (self.preferences.pipedContentFileToOpen) {
|
||||
NSURL *pipedContentFileToOpenURL = [NSURL fileURLWithPath:self.preferences.pipedContentFileToOpen];
|
||||
NSError *readPipedContentError;
|
||||
NSString *pipedContentString = [NSString stringWithContentsOfURL:pipedContentFileToOpenURL encoding:NSUTF8StringEncoding error:&readPipedContentError];
|
||||
|
||||
|
||||
NSError *openDocumentError;
|
||||
MPDocument *document = (MPDocument *)[c openUntitledDocumentAndDisplay:YES error:&openDocumentError];
|
||||
|
||||
|
||||
if (document && openDocumentError == nil && readPipedContentError == nil) {
|
||||
document.markdown = pipedContentString;
|
||||
}
|
||||
|
||||
|
||||
self.preferences.pipedContentFileToOpen = nil;
|
||||
[self.preferences synchronize];
|
||||
}
|
||||
|
||||
@@ -4,6 +4,18 @@
|
||||
<dict>
|
||||
<key>CFBundleDevelopmentRegion</key>
|
||||
<string>en</string>
|
||||
<key>CFBundleURLTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleURLName</key>
|
||||
<string>Macdown custom control</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>x-macdown</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
|
||||
<key>CFBundleDocumentTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
|
||||
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
Executable → Regular
+28
-18
@@ -1,6 +1,6 @@
|
||||
# MacDown
|
||||
|
||||

|
||||

|
||||
|
||||
Hello there! I’m **MacDown**, the open source Markdown editor for OS X.
|
||||
|
||||
@@ -10,17 +10,17 @@ Let me introduce myself.
|
||||
|
||||
## Markdown and I
|
||||
|
||||
**Markdown** is a plain text formatting syntax created by John Gruber, aiming to provide a easy-to-read and feasible markup. The original Markdown syntax specification can be found [here](http://daringfireball.net/projects/markdown/syntax).
|
||||
**Markdown** is a plain text formatting syntax created by John Gruber, aiming to provide a easy-to-read and feasible markup. The original Markdown syntax specification can be found [here](https://daringfireball.net/projects/markdown/syntax).
|
||||
|
||||
**MacDown** is created as a simple-to-use editor for Markdown documents. I render your Markdown contents real-time into HTML, and display them in a preview panel.
|
||||
|
||||

|
||||

|
||||
|
||||
I support all the original Markdown syntaxes. But I can do so much more! Various popular but non-standard syntaxes can be turned on/off from the [**Markdown** preference pane](#markdown-pane).
|
||||
|
||||
You can specify extra HTML rendering options through the [**Rendering** preference pane](#rendering-pane).
|
||||
|
||||
You can customize the editor window to you liking in the [**Editor** preferences pane](#editor-pane):
|
||||
You can customize the editor window to your liking in the [**Editor** preferences pane](#editor-pane):
|
||||
|
||||
You can configure various application (that's me!) behaviors in the [**General** preference pane](#general-pane).
|
||||
|
||||
@@ -75,24 +75,24 @@ or
|
||||
Just put angle brackets around an email and it becomes clickable: <uranusjr@gmail.com>
|
||||
`<uranusjr@gmail.com>`
|
||||
|
||||
Same thing with urls: <http://macdown.uranusjr.com>
|
||||
` <http://macdown.uranusjr.com>`
|
||||
Same thing with urls: <https://macdown.uranusjr.com>
|
||||
` <https://macdown.uranusjr.com>`
|
||||
|
||||
Perhaps you want to some link text like this: [Macdown Website](http://macdown.uranusjr.com "Title")
|
||||
`[Macdown Website](http://macdown.uranusjr.com "Title")` (The title is optional)
|
||||
Perhaps you want to link some text like this: [Macdown Website](https://macdown.uranusjr.com "Title")
|
||||
`[Macdown Website](https://macdown.uranusjr.com "Title")` (The title is optional)
|
||||
|
||||
|
||||
#### Reference style
|
||||
Sometimes it looks too messy to include big long urls inline, or you want to keep all your urls together.
|
||||
|
||||
Make [a link][arbitrary_id] `[a link][arbitrary_id]` then on it's own line anywhere else in the file:
|
||||
`[arbitrary_id]: http://macdown.uranusjr.com "Title"`
|
||||
`[arbitrary_id]: https://macdown.uranusjr.com "Title"`
|
||||
|
||||
If the link text itself would make a good id, you can link [like this][] `[like this][]`, then on it's own line anywhere else in the file:
|
||||
`[like this]: http://macdown.uranusjr.com`
|
||||
`[like this]: https://macdown.uranusjr.com`
|
||||
|
||||
[arbitrary_id]: http://macdown.uranusjr.com "Title"
|
||||
[like this]: http://macdown.uranusjr.com
|
||||
[arbitrary_id]: https://macdown.uranusjr.com "Title"
|
||||
[like this]: https://macdown.uranusjr.com
|
||||
|
||||
|
||||
### Images
|
||||
@@ -189,7 +189,7 @@ If you type three asterisks `***` or three dashes `---` on a line, I'll display
|
||||
|
||||
## <a name="markdown-pane"></a>The Markdown Preference Pane
|
||||
This is where I keep all preferences related to how I parse markdown into html.
|
||||

|
||||

|
||||
|
||||
### Document Formatting
|
||||
The ***Smartypants*** extension automatically transforms straight quotes (`"` and `'`) in your text into typographer’s quotes (`“`, `”`, `‘`, and `’`) according to the context. Very useful if you’re a typography freak like I am. Quote and Smartypants are syntactically incompatible. If both are enabled, Quote takes precedence.
|
||||
@@ -233,9 +233,9 @@ print('Hello world!')
|
||||
|
||||
You can add an optional language ID at the end of the first line. The language ID will only be used to highlight the code inside if you tick the ***Enable highlighting in code blocks*** option. This is what happens if you enable it:
|
||||
|
||||

|
||||

|
||||
|
||||
I support many popular languages as well as some generic syntax descriptions that can be used if your language of choice is not supported. See [relevant sections on the official site](http://macdown.uranusjr.com/features/) for a full list of supported syntaxes.
|
||||
I support many popular languages as well as some generic syntax descriptions that can be used if your language of choice is not supported. See [relevant sections on the official site](https://macdown.uranusjr.com/features/) for a full list of supported syntaxes.
|
||||
|
||||
|
||||
### Inline Formatting
|
||||
@@ -260,7 +260,7 @@ Footnotes | [\^4] and [\^4]: | [^4] and footnote 4 |
|
||||
|
||||
## <a name="rendering-pane"></a>The Rendering Preference Pane
|
||||
This is where I keep preferences relating to how I render and style the parsed markdown in the preview window.
|
||||

|
||||

|
||||
|
||||
### CSS
|
||||
You can choose different css files for me to use to render your html. You can even customize or add your own custom css files.
|
||||
@@ -309,13 +309,13 @@ Normally I require you to put two spaces and a newline (aka return) at the end o
|
||||
## <a name="general-pane"></a>The General Preferences Pane
|
||||
|
||||
This is where I keep preferences related to application behavior.
|
||||

|
||||

|
||||
|
||||
The General Preferences Pane allows you to tell me how you want me to behave. For example, do you want me to make sure there is a document open when I launch? You can also tell me if I should constantly update the preview window as you type, or wait for you to hit `command-R` instead. Maybe you prefer your editor window on the right? Or to see the word-count as you type. This is also the place to tell me if you are interested in pre-releases of me, or just want to stick to better-tested official releases.
|
||||
|
||||
## <a name="editor-pane"></a>The Editor Preference Pane
|
||||
This is where I keep preferences related to the behavior and styling of the editing window.
|
||||

|
||||

|
||||
|
||||
|
||||
### Styling
|
||||
@@ -327,7 +327,17 @@ You can also edit, or even add new themes if you want to! Just click the ***Reve
|
||||
I offer auto-completion and other functions to ease your editing experience. If you don’t like it, however, you can turn them off.
|
||||
|
||||
|
||||
## Hidden preference
|
||||
|
||||
You can see the HTML behind a preview by enabling the OS X built-in WebKit developer tools for MacDown in a terminal window:
|
||||
|
||||
```
|
||||
defaults write com.uranusjr.macdown WebKitDeveloperExtras -bool true
|
||||
```
|
||||
|
||||
Then select “Inspect Element” in the right-click context menu inside the preview pane.
|
||||
|
||||
This is the exact same inspector you find in Safari if you turn on the developer tools.
|
||||
|
||||
|
||||
## Hack On
|
||||
|
||||
+14
-1
@@ -22,6 +22,19 @@ DEPENDENCIES:
|
||||
- PAPreferences (~> 0.4)
|
||||
- Sparkle (~> 1.18)
|
||||
|
||||
SPEC REPOS:
|
||||
https://github.com/cocoapods/specs.git:
|
||||
- GBCli
|
||||
- JJPluralForm
|
||||
- LibYAML
|
||||
- M13OrderedDictionary
|
||||
- MASPreferences
|
||||
- PAPreferences
|
||||
- Sparkle
|
||||
https://github.com/MacDownApp/cocoapods-specs.git:
|
||||
- handlebars-objc
|
||||
- hoedown
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
GBCli: e5f988fadb68e1e3c01919f134009fed9796fde0
|
||||
handlebars-objc: dde09557cfee1dd0f34ab39595bd5eae7e17cb8b
|
||||
@@ -35,4 +48,4 @@ SPEC CHECKSUMS:
|
||||
|
||||
PODFILE CHECKSUM: 1c5b20dfe418eb7c8d4ad108b08133a493681f55
|
||||
|
||||
COCOAPODS: 1.3.1
|
||||
COCOAPODS: 1.6.1
|
||||
|
||||
@@ -16,6 +16,10 @@ Visit the [project site](http://macdown.uranusjr.com/) for more information, or
|
||||
|
||||
brew cask install macdown
|
||||
|
||||
## Screenshot
|
||||
|
||||

|
||||
|
||||
## License
|
||||
|
||||
MacDown is released under the terms of MIT License. You may find the content of the license [here](http://opensource.org/licenses/MIT), or inside the `LICENSE` directory.
|
||||
@@ -74,6 +78,12 @@ Refer to the official guides of Git and CocoaPods if you need more instructions.
|
||||
git submodule update
|
||||
bundle exec pod install
|
||||
|
||||
### Translation
|
||||
|
||||
Please help translation on [Transifex](https://www.transifex.com/macdown/macdown/).
|
||||
|
||||

|
||||
|
||||
## Discussion
|
||||
|
||||
[](https://gitter.im/MacDownApp/macdown)
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
/node_modules/
|
||||
@@ -0,0 +1,13 @@
|
||||
NODE_SASS = node_modules/.bin/node-sass
|
||||
|
||||
target = ../../MacDown/Resources/Styles/GitHub-2017.css
|
||||
|
||||
all: $(target)
|
||||
|
||||
$(target): index.sass package-lock.json
|
||||
$(NODE_SASS) --include-path node_modules $< | sed s/.markdown-body/body/ > $@
|
||||
|
||||
clean:
|
||||
$(RM) $(target)
|
||||
|
||||
.PHONY: all clean
|
||||
@@ -0,0 +1,9 @@
|
||||
# GitHub Style Generator
|
||||
|
||||
This tool generates the GitHub style with official GitHub style package. npm 5 or above is required (to make use of `package-lock.json`). To update the style, bump the name in `Makefile`, and run:
|
||||
|
||||
```bash
|
||||
npm install
|
||||
npm update primer-markdown
|
||||
make
|
||||
```
|
||||
@@ -0,0 +1 @@
|
||||
@import primer-markdown/index
|
||||
+1508
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "github-style-generator",
|
||||
"version": "1.0.0",
|
||||
"description": "Generates GitHub style for MacDown.",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/MacDownApp/macdown/tree/master/Tools/GitHub-theme-generator"
|
||||
},
|
||||
"author": "Franklin Yu",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"node-sass": "^4.9.2",
|
||||
"primer-markdown": "^3.7.8"
|
||||
}
|
||||
}
|
||||
@@ -2,6 +2,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
@@ -50,13 +52,15 @@ def archive_dir(zip_f, directory):
|
||||
zip_f.write(full_path)
|
||||
|
||||
|
||||
def main(argv):
|
||||
if len(argv) < 2:
|
||||
name = os.path.basename(argv[0])
|
||||
print('Usage: {name} private_key'.format(name=name))
|
||||
return
|
||||
def parse_args(argv):
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('path_to_pem', help='path to .pem private key')
|
||||
return parser.parse_args(argv)
|
||||
|
||||
cert_path = argv[1]
|
||||
|
||||
def main(argv):
|
||||
options = parse_args(argv)
|
||||
cert_path = options.path_to_pem
|
||||
|
||||
print('Pre-build cleaning...')
|
||||
if os.path.exists(BUILD_DIR):
|
||||
@@ -141,5 +145,4 @@ def main(argv):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
import sys
|
||||
main(sys.argv)
|
||||
main(None)
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 232 KiB |
Reference in New Issue
Block a user