Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

upgrade to use of MMD 3.0

  • Loading branch information...
commit e4b0e48134a349061383fa1c2a89d12cd88cb7ec 1 parent 92f7ca1
@fletcher authored
View
29 Commands/Convert Document : Selection to HTML(snippet).tmCommand
@@ -1,29 +0,0 @@
-<?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>beforeRunningCommand</key>
- <string>nop</string>
- <key>command</key>
- <string># Process the MultiMarkdown document and display as XHTML source
-
-cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
-cd bin
-./addmetadata.pl "format: snippet" | ./mmd2XHTML.pl
-</string>
- <key>fallbackInput</key>
- <string>document</string>
- <key>input</key>
- <string>selection</string>
- <key>keyEquivalent</key>
- <string>^H</string>
- <key>name</key>
- <string>Convert Document / Selection to HTML(snippet)</string>
- <key>output</key>
- <string>openAsNewDocument</string>
- <key>scope</key>
- <string>text.html.markdown.multimarkdown</string>
- <key>uuid</key>
- <string>401A3DB4-7032-4046-A2B6-6021C20F4DE5</string>
-</dict>
-</plist>
View
51 Commands/Convert Document : Selection to PDF(XeLaTeX).tmCommand
@@ -1,51 +0,0 @@
-<?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>beforeRunningCommand</key>
- <string>nop</string>
- <key>command</key>
- <string># first figure out a name for the result
-NAME="${TM_FILENAME:-untitled}"
-BASENAME="${NAME%.*}"
-DST="/tmp/TextMate/$BASENAME"
-
-if [ ! -d /tmp/TextMate ]; then
-mkdir /tmp/TextMate
-fi
-
-# Copy possible ancillary files
-cd "${TM_FILEPATH%/*}"
-cp *.png *.bib *.gif *.jpg *.pdf /tmp/TextMate
-
-
-cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
-cd bin
-cat &gt; "$DST.txt"
-
-
-./mmd2PDFXeLaTeX.pl "$DST.txt"
-
-# open in the users PDF viewer (falling back on Preview)
-viewer=$(find_app "${TM_PDF_VIEWER:-Preview.app}")
-if [ $? = 0 ];
- then open -a "$viewer" "$DST.pdf"
- else echo "Could not find your PDF viewer: ‘${TM_PDF_VIEWER:-Preview.app}’"
-fi
-</string>
- <key>fallbackInput</key>
- <string>document</string>
- <key>input</key>
- <string>selection</string>
- <key>keyEquivalent</key>
- <string>^P</string>
- <key>name</key>
- <string>Convert Document / Selection to PDF(XeLaTeX)</string>
- <key>output</key>
- <string>showAsHTML</string>
- <key>scope</key>
- <string>text.html.markdown.multimarkdown</string>
- <key>uuid</key>
- <string>F05719F8-89F2-48F0-88F6-8CFAEEF5BA91</string>
-</dict>
-</plist>
View
53 Commands/Convert Document : Selection to PDF(letter).tmCommand
@@ -1,53 +0,0 @@
-<?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>beforeRunningCommand</key>
- <string>nop</string>
- <key>command</key>
- <string># first figure out a name for the result
-NAME="${TM_FILENAME:-untitled}"
-BASENAME="${NAME%.*}"
-DST="/tmp/TextMate/$BASENAME"
-
-if [ ! -d /tmp/TextMate ]; then
-mkdir /tmp/TextMate
-fi
-
-# Copy possible ancillary files
-cd "${TM_FILEPATH%/*}"
-cp *.png *.bib *.gif *.jpg *.pdf /tmp/TextMate
-
-
-cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
-cd bin
-cat &gt; "$DST.txt"
-
-
-./mmd2letter.pl "$DST.txt"
-
-# open in the users PDF viewer (falling back on Preview)
-viewer=$(find_app "${TM_PDF_VIEWER:-Preview.app}")
-if [ $? = 0 ];
- then
- open -a "$viewer" "$DST.pdf"
- open -a "$viewer" "$DST-envelope.pdf"
- else echo "Could not find your PDF viewer: ‘${TM_PDF_VIEWER:-Preview.app}’"
-fi
-</string>
- <key>fallbackInput</key>
- <string>document</string>
- <key>input</key>
- <string>selection</string>
- <key>keyEquivalent</key>
- <string>^P</string>
- <key>name</key>
- <string>Convert Document / Selection to PDF(letter)</string>
- <key>output</key>
- <string>showAsHTML</string>
- <key>scope</key>
- <string>text.html.markdown.multimarkdown</string>
- <key>uuid</key>
- <string>E57A1B41-D70E-44C9-9512-45026C0A32F2</string>
-</dict>
-</plist>
View
5 Commands/Convert Document:Selection to HTML.plist
@@ -11,10 +11,7 @@ if [[ -f "$TM_FILEPATH" ]]; then
echo "&lt;base href='tm-file://${TM_FILEPATH// /%20}'&gt;"
fi
-cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
-cd bin
-./mmd2XHTML.pl
-</string>
+multimarkdown</string>
<key>fallbackInput</key>
<string>document</string>
<key>input</key>
View
4 Commands/Convert Document:Selection to LaTeX.plist
@@ -8,9 +8,7 @@
<string># Process the MultiMarkdown document using the univeral approach
# This defaults to memoir
-cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
-cd bin
-./mmd2LaTeX.pl</string>
+multimarkdown -t latex</string>
<key>fallbackInput</key>
<string>document</string>
<key>input</key>
View
51 Commands/Convert Document:Selection to PDF.plist
@@ -1,51 +0,0 @@
-<?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>beforeRunningCommand</key>
- <string>nop</string>
- <key>command</key>
- <string># first figure out a name for the result
-NAME="${TM_FILENAME:-untitled}"
-BASENAME="${NAME%.*}"
-DST="/tmp/TextMate/$BASENAME"
-
-if [ ! -d /tmp/TextMate ]; then
-mkdir /tmp/TextMate
-fi
-
-# Copy possible ancillary files
-cd "${TM_FILEPATH%/*}"
-cp *.png *.bib *.gif *.jpg *.pdf /tmp/TextMate
-
-
-cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
-cd bin
-cat &gt; "$DST.txt"
-
-
-./mmd2PDF.pl "$DST.txt"
-
-# open in the users PDF viewer (falling back on Preview)
-viewer=$(find_app "${TM_PDF_VIEWER:-Preview.app}")
-if [ $? = 0 ];
- then open -a "$viewer" "$DST.pdf"
- else echo "Could not find your PDF viewer: ‘${TM_PDF_VIEWER:-Preview.app}’"
-fi
-</string>
- <key>fallbackInput</key>
- <string>document</string>
- <key>input</key>
- <string>selection</string>
- <key>keyEquivalent</key>
- <string>^P</string>
- <key>name</key>
- <string>Convert Document / Selection to PDF</string>
- <key>output</key>
- <string>showAsHTML</string>
- <key>scope</key>
- <string>text.html.markdown.multimarkdown</string>
- <key>uuid</key>
- <string>DB5085DA-3E95-4020-8521-C9702168F160</string>
-</dict>
-</plist>
View
2  Commands/Generate Output and open in Browser.plist
@@ -11,7 +11,7 @@ mkdir /tmp/TextMate
cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
cd bin
-./mmd2XHTML.pl &gt; /tmp/TextMate/output.html
+multimarkdown &gt; /tmp/TextMate/output.html
open /tmp/TextMate/output.html</string>
<key>fallbackInput</key>
<string>document</string>
View
4 Commands/MultiMarkdown Preview.tmCommand
@@ -18,9 +18,7 @@ if [[ -f "$TM_FILEPATH" ]]; then
fi
-cd "${TM_MULTIMARKDOWN_PATH:-$HOME/Library/Application Support/MultiMarkdown}"
-cd bin
-./mmd2XHTML.pl</string>
+multimarkdown</string>
<key>fallbackInput</key>
<string>document</string>
<key>input</key>
View
8 info.plist
@@ -18,6 +18,10 @@
<string>485F0ABF-7A7D-4432-8AB6-702414D6ADBD</string>
<string>4AB16529-60A5-4CE7-8E97-B0785CAF87C4</string>
<string>3BAE5ECF-9006-43D0-9AEB-28FAFE526840</string>
+ <string>401A3DB4-7032-4046-A2B6-6021C20F4DE5</string>
+ <string>DB5085DA-3E95-4020-8521-C9702168F160</string>
+ <string>E57A1B41-D70E-44C9-9512-45026C0A32F2</string>
+ <string>F05719F8-89F2-48F0-88F6-8CFAEEF5BA91</string>
</array>
<key>description</key>
<string>&lt;a href="http://daringfireball.net/projects/markdown/"&gt;Markdown&lt;/a&gt; allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML. This bundle provides preview functionality, syntax highlighting, and several useful commands. Improved support for &lt;a href="http://fletcherpenney.net/multimarkdown/"&gt;MultiMarkdown&lt;/a&gt; has been added.</string>
@@ -165,11 +169,7 @@
<string>F3A754C3-CE6B-11D9-9C17-000A95C0F626</string>
<string>724FCFF6-CE6B-11D9-9C17-000A95C0F626</string>
<string>9F73CBC1-E9C0-41A4-891F-B2879A1852F7</string>
- <string>401A3DB4-7032-4046-A2B6-6021C20F4DE5</string>
<string>67EB96A4-4213-42C9-9C47-B886A4B8AC93</string>
- <string>DB5085DA-3E95-4020-8521-C9702168F160</string>
- <string>E57A1B41-D70E-44C9-9512-45026C0A32F2</string>
- <string>F05719F8-89F2-48F0-88F6-8CFAEEF5BA91</string>
<string>D9118E94-4E23-4B75-88D7-6BFEBAA70D1B</string>
<string>14199AC7-CF55-404F-B035-A0F88E7F6141</string>
<string>2E520800-167A-4D3F-99F1-750EBEFCF8BA</string>
Please sign in to comment.
Something went wrong with that request. Please try again.