Skip to content

Commit

Permalink
Merge branch 'js'
Browse files Browse the repository at this point in the history
  • Loading branch information
wangbus committed Mar 2, 2012
2 parents 76d1a02 + 405edfd commit f53d2af
Show file tree
Hide file tree
Showing 8 changed files with 1,542 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CFA927F115009C2D00638EC0"
BuildableName = "HiCapacityPreview.app"
BlueprintName = "HiCapacityPreview"
ReferencedContainer = "container:HiCapacityPreview.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CFA9281215009C2D00638EC0"
BuildableName = "HiCapacityPreviewTests.octest"
BlueprintName = "HiCapacityPreviewTests"
ReferencedContainer = "container:HiCapacityPreview.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CFA927F115009C2D00638EC0"
BuildableName = "HiCapacityPreview.app"
BlueprintName = "HiCapacityPreview"
ReferencedContainer = "container:HiCapacityPreview.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CFA927F115009C2D00638EC0"
BuildableName = "HiCapacityPreview.app"
BlueprintName = "HiCapacityPreview"
ReferencedContainer = "container:HiCapacityPreview.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "CFA927F115009C2D00638EC0"
BuildableName = "HiCapacityPreview.app"
BlueprintName = "HiCapacityPreview"
ReferencedContainer = "container:HiCapacityPreview.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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>SchemeUserState</key>
<dict>
<key>HiCapacityPreview.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>CFA927F115009C2D00638EC0</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>CFA9281215009C2D00638EC0</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
4 changes: 4 additions & 0 deletions MarkdownPreview/js/jquery-1.7.1.min.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions MarkdownPreview/js/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$(function() {
var converter = new Showdown.converter();
$("#user_input").keyup(function(){
var txt = $("#user_input").val();
var html = converter.makeHtml(txt);
$("#result").html(html)
$("#html_result").val(html.replace(/>/g, ">\n").replace(/</g, "\n<").replace(/\n{2,}/g, "\n\n"));
});

$("#result").html(html);
$("#html_result").val(html.replace(/>/g, ">\n").replace(/</g, "\n<").replace(/\n{2,}/g, "\n\n"));
});
Loading

0 comments on commit f53d2af

Please sign in to comment.