forked from fletcher/MultiMarkdown-4
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
292 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Title: MultiMarkdown License Agreement | ||
|
||
multimarkdown | ||
Copyright (c) 2010-2013 Fletcher T. Penney | ||
|
||
Modifications to remove reliance on Glib2: | ||
Copyright (c) 2011 Daniel Jalkut, licensed explicitly MIT. | ||
|
||
Portions based on: | ||
peg-markdown | ||
Copyright (c) 2008-2011 John MacFarlane | ||
ODF output code (c) 2011-2013 Fletcher T. Penney | ||
|
||
peg-markdown is released under both the GPL and MIT licenses. | ||
You may pick the license that best fits your needs. | ||
|
||
|
||
## The GPL ## | ||
|
||
This program is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 2 of the License, or | ||
(at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
|
||
## The MIT License ## | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<pkg-contents spec="1.12"><f n="Package_Root" o="root" g="wheel" p="16877" pt="/Users/fletcher/Documents/Dropbox/Active/peg-multimarkdown/mac_installer/Package_Root" m="true" t="file"><f n="usr" o="root" g="wheel" p="16877"><f n="local" o="root" g="wheel" p="16893"><f n=".DS_Store" o="root" g="wheel" p="33204" x="true"><mod>owner</mod><mod>mode</mod><mod>group</mod></f><f n="bin" o="root" g="wheel" p="16893"><f n="mmd" o="root" g="wheel" p="33261"><mod>owner</mod><mod>mode</mod><mod>group</mod></f><f n="mmd2odf" o="root" g="wheel" p="33261"><mod>owner</mod><mod>mode</mod><mod>group</mod></f><f n="mmd2opml" o="root" g="wheel" p="33261"><mod>owner</mod><mod>mode</mod><mod>group</mod></f><f n="mmd2tex" o="root" g="wheel" p="33261"><mod>owner</mod><mod>mode</mod><mod>group</mod></f><f n="multimarkdown" o="root" g="wheel" p="33261"><mod>owner</mod><mod>mode</mod><mod>group</mod></f><mod>group</mod><mod>owner</mod></f><f n="lib" o="root" g="wheel" p="16893"><f n="libglib-2.0.0.dylib" o="root" g="wheel" p="33060"><mod>group</mod><mod>owner</mod></f><f n="libintl.8.0.2.dylib" o="root" g="wheel" p="33204"><mod>group</mod><mod>owner</mod></f><f n="libintl.8.dylib" o="root" g="wheel" p="33204"><mod>group</mod><mod>owner</mod></f><f n="libintl.dylib" o="root" g="wheel" p="33204"><mod>group</mod><mod>owner</mod></f><mod>group</mod><mod>owner</mod></f><mod>group</mod><mod>owner</mod></f><mod>group</mod><mod>owner</mod></f><mod>group</mod><mod>owner</mod></f></pkg-contents> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<pkgref spec="1.12" uuid="C904A8B6-FBBE-449C-8F6B-0BDD7380CE43"><config><identifier>net.fletcherpenney.multimarkdown.pkg</identifier><version>3.0b8</version><description></description><post-install type="none"/><requireAuthorization/><installFrom relative="true">Package_Root</installFrom><installTo>/</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"></packageStore><mod>installFrom.isRelativeType</mod><mod>identifier</mod><mod>parent</mod><mod>installTo</mod><mod>version</mod></config><contents><file-list>01package-contents.xml</file-list><filter>/CVS$</filter><filter>/\.svn$</filter><filter>/\.cvsignore$</filter><filter>/\.cvspass$</filter><filter>/\.DS_Store$</filter></contents></pkgref> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<pkmkdoc spec="1.12"><properties><title>MultiMarkdown</title><build>/Users/fletcher/MultiMarkdown-Mac-3.0b3.pkg</build><organization>net.fletcherpenney.multimarkdown</organization><userSees ui="easy"/><min-target os="1"/><domain system="true"/></properties><distribution><versions min-spec="1.000000"/><scripts></scripts></distribution><description>Installs the multimarkdown binary, as well as the glib2 library (libglib2.0.0) and libintl files</description><contents><choice title="Package_Root" id="choice10" starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="net.fletcherpenney.multimarkdown.pkg"/></choice></contents><resources bg-scale="none" bg-align="topleft"><locale lang="en"><resource relative="true" mod="true" type="license">Resources/License.html</resource><resource relative="true" mod="true" type="readme">Resources/README.html</resource><resource relative="true" mod="true" type="welcome">Resources/Welcome.html</resource></locale></resources><flags/><item type="file">01package.xml</item><mod>properties.title</mod><mod>description</mod><mod>properties.anywhereDomain</mod><mod>properties.systemDomain</mod></pkmkdoc> |
1 change: 1 addition & 0 deletions
1
mac_installer/Make Support Installer.pmdoc/01library-contents.xml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<pkgref spec="1.12" uuid="D8C6383E-CEE5-4909-992E-C0E9CFDBC60E"><config><identifier>net.fletcherpenney.mmdsupport</identifier><version>3.0b3</version><description></description><post-install type="none"/><installFrom relative="true" includeRoot="true">Support_Root/Library</installFrom><installTo>/</installTo><flags><followSymbolicLinks/></flags><packageStore type="internal"></packageStore><mod>installTo</mod><mod>requireAuthorization</mod><mod>parent</mod><mod>version</mod><mod>identifier</mod><mod>installFrom.isRelativeType</mod><mod>includeRoot</mod></config><contents><file-list>01library-contents.xml</file-list><filter>/CVS$</filter><filter>/\.svn$</filter><filter>/\.cvsignore$</filter><filter>/\.cvspass$</filter><filter>/\.DS_Store$</filter></contents></pkgref> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<pkmkdoc spec="1.12"><properties><title>MultiMarkdown-Mac-Support-3.0b2</title><build>/Users/fletcher/MultiMarkdown-Mac-Support-3.0b3.mpkg</build><organization>net.fletcherpenney</organization><userSees ui="easy"/><min-target os="1"/><domain user="true"/></properties><distribution><versions min-spec="1.000000"/><scripts></scripts></distribution><contents><choice title="Library" id="choice14" starts_selected="true" starts_enabled="true" starts_hidden="false"><pkgref id="net.fletcherpenney.mmdsupport"/></choice></contents><resources bg-scale="none" bg-align="topleft"><locale lang="en"><resource relative="true" mod="true" type="license">Resources/License.html</resource><resource relative="true" mod="true" type="welcome">Resources/Support_Welcome.html</resource></locale></resources><flags/><item type="file">01library.xml</item><mod>properties.title</mod><mod>properties.customizeOption</mod><mod>properties.userDomain</mod><mod>properties.anywhereDomain</mod><mod>properties.systemDomain</mod></pkmkdoc> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Title: Installer Welcome Message | ||
|
||
This custom installer will install the **MultiMarkdown** directory into | ||
`~/Library/Application Support/MultiMarkdown`. This directory contains a few | ||
utility scripts and XSLT files that enable use of MultiMarkdown with | ||
[Scrivener] and adds some additional features when using the [TextMate][] | ||
[bundle]. | ||
|
||
**NOTE**: This package will overwrite certain files if you have previously | ||
installed MultiMarkdown 2.0 in your `Application Support` folder. It will | ||
leave most of the files untouched, but will overwrite some of the core XSLT | ||
files and the core convenience scripts in `/bin`. You may wish to back that | ||
folder up just in case (or better yet, move it to another location and start | ||
fresh) | ||
|
||
This package does **not** include the actual MultiMarkdown binary --- that | ||
requires a separate installer. | ||
|
||
For more information, please check out the MultiMarkdown [web | ||
site](http://fletcherpenney.net/multimarkdown/). | ||
|
||
You will be guided through the steps necessary to install this software. | ||
|
||
[Scrivener]: http://www.literatureandlatte.com/ | ||
|
||
[TextMate]: http://macromates.com/ | ||
|
||
[bundle]: https://github.com/fletcher/markdown.tmbundle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Title: Installer Welcome Message | ||
|
||
This custom installer will install **MultiMarkdown** and several convenience scripts to serve as shortcuts for using MultiMarkdown from the command line. | ||
|
||
|
||
For more information, please check out the MultiMarkdown [web | ||
site](http://fletcherpenney.net/multimarkdown/). | ||
|
||
You will be guided through the steps necessary to install this software. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
# | ||
# mmd --- MultiMarkdown convenience script | ||
# <http://fletcherpenney.net/multimarkdown/> | ||
# Fletcher T. Penney | ||
# | ||
# Pass arguments on to the binary to convert text to XHTML | ||
# | ||
|
||
# Be sure to include multimarkdown in our PATH | ||
export PATH="/usr/local/bin:$PATH" | ||
|
||
if [ $# = 0 ] | ||
then | ||
multimarkdown | ||
else | ||
until [ "$*" = "" ] | ||
do | ||
multimarkdown -b "$1" | ||
shift | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
# | ||
# multimmd --- MultiMarkdown convenience script | ||
# <http://fletcherpenney.net/multimarkdown/> | ||
# Fletcher T. Penney | ||
# | ||
# Pass arguments on to the binary to convert text to multiple | ||
# formats and open them | ||
# | ||
|
||
# Be sure to include multimarkdown in our PATH | ||
export PATH="/usr/local/bin:$PATH" | ||
|
||
if [ $# = 0 ] | ||
then | ||
echo "Can't work on stdin" | ||
else | ||
until [ "$*" = "" ] | ||
do | ||
file_name=`echo $1| sed 's/\.[^.]*$//'` | ||
|
||
multimarkdown -b "$1" | ||
open "$file_name.html" | ||
|
||
multimarkdown -b -t latex "$1" | ||
mate "$file_name.tex" | ||
|
||
multimarkdown -b -t odf "$1" | ||
open "$file_name.fodt" | ||
|
||
multimarkdown -b -t opml "$1" | ||
open "$file_name.opml" | ||
|
||
shift | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
# | ||
# mmd2odf --- MultiMarkdown convenience script | ||
# <http://fletcherpenney.net/multimarkdown/> | ||
# Fletcher T. Penney | ||
# | ||
# Pass arguments on to the binary to convert text to OpenDocument | ||
# | ||
|
||
# Be sure to include multimarkdown in our PATH | ||
export PATH="/usr/local/bin:$PATH" | ||
|
||
if [ $# = 0 ] | ||
then | ||
multimarkdown -t odf | ||
else | ||
until [ "$*" = "" ] | ||
do | ||
multimarkdown -b -t odf "$1" | ||
shift | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
# | ||
# mmd2opml --- MultiMarkdown convenience script | ||
# <http://fletcherpenney.net/multimarkdown/> | ||
# Fletcher T. Penney | ||
# | ||
# Pass arguments on to the binary to convert text to OPML | ||
# | ||
|
||
# Be sure to include multimarkdown in our PATH | ||
export PATH="/usr/local/bin:$PATH" | ||
|
||
if [ $# = 0 ] | ||
then | ||
multimarkdown -t opml | ||
else | ||
until [ "$*" = "" ] | ||
do | ||
multimarkdown -b -t opml "$1" | ||
shift | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
#!/bin/sh | ||
# | ||
# mmd2pdf --- MultiMarkdown convenience script | ||
# <http://fletcherpenney.net/multimarkdown/> | ||
# Fletcher T. Penney | ||
# | ||
# Pass arguments on to the binary to convert text to LaTeX | ||
# Then use latexmk to process into PDF. | ||
# Requires a few extra passes of pdflatex to be sure all autorefs | ||
# are managed. | ||
# Then call latexmk with -c option to try and clean up some extra files. | ||
# | ||
# NOTE: This file is included as a convenience for users - it's not | ||
# likely to fail gracefully if there are any issues in your | ||
# LaTeX file. | ||
|
||
# Be sure to include multimarkdown and latex in our PATH | ||
export PATH="/usr/local/bin:/usr/texbin:$PATH" | ||
|
||
if [ $# = 0 ] | ||
then | ||
multimarkdown -t latex | ||
else | ||
until [ "$*" = "" ] | ||
do | ||
multimarkdown -b -t latex "$1" | ||
|
||
file_name=`echo $1| sed 's/\.[^.]*$//'` | ||
|
||
# Check for XeLaTeX mode | ||
|
||
xelatex=`multimarkdown -e usexelatex "$1"` | ||
|
||
if [ "$xelatex" != "" ] | ||
then | ||
# Use XeLaTeX | ||
|
||
xelatex "$file_name.tex" | ||
|
||
if [ "$?" == "127" ] | ||
then | ||
echo "It doesn't appear that xelatex is installed properly." 1>&2 | ||
echo "Be sure you have a working LaTeX installation." 1>&2 | ||
exit 1 | ||
fi | ||
|
||
xelatex "$file_name.tex" | ||
xelatex "$file_name.tex" | ||
xelatex "$file_name.tex" | ||
latexmk -c "$file_name.tex" | ||
|
||
else | ||
# Use LaTeX | ||
latexmk "$file_name.tex" | ||
|
||
if [ "$?" == "127" ] | ||
then | ||
echo "It doesn't appear that latexmk is installed properly." 1>&2 | ||
echo "Be sure you have a working LaTeX installation." 1>&2 | ||
exit 1 | ||
fi | ||
|
||
makeglossaries "$file_name" | ||
pdflatex "$file_name.tex" | ||
pdflatex "$file_name.tex" | ||
latexmk -c "$file_name.tex" | ||
|
||
fi | ||
|
||
shift | ||
done | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
# | ||
# mmd2tex --- MultiMarkdown convenience script | ||
# <http://fletcherpenney.net/multimarkdown/> | ||
# Fletcher T. Penney | ||
# | ||
# Pass arguments on to the binary to convert text to LaTeX | ||
# | ||
|
||
# Be sure to include multimarkdown in our PATH | ||
export PATH="/usr/local/bin:$PATH" | ||
|
||
if [ $# = 0 ] | ||
then | ||
multimarkdown -t latex | ||
else | ||
until [ "$*" = "" ] | ||
do | ||
multimarkdown -b -t latex "$1" | ||
shift | ||
done | ||
fi |