Last active
December 30, 2015 05:19
-
-
Save ananelson/7782324 to your computer and use it in GitHub Desktop.
pegdown CLI
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
ana:dexy$ pegdown --help | |
Usage: | |
pegdown [ ( [-a] [-l] [-w] [-q] [-s] [-p] [-t] [-b] [-i] [-o] [-h] | [--all] ) | --none | --help ] | |
[ source [ target ] ] | |
Options and arguments: | |
source : Source filename | |
target : Target filename | |
--all : Enable all available extensions not including the HTML | |
SUPPRESSION options. | |
--help : Show help message. | |
--none : The default, standard markup mode without any | |
extensions. | |
-a (--abbreviations) : Support for abbreviations in the way of PHP Markdown | |
Extra. | |
-b (--no-blocks) : Suppresses HTML blocks. They will be accepted in the | |
input but not be contained in the output. | |
-h (--no-html) : Suppresses HTML blocks as well as inline HTML tags. | |
Both will be accepted in the input but not be contained | |
in the output. | |
-i (--no-inline) : Suppresses inline HTML tags. They will be accepted in | |
the input but not be contained in the output. | |
-l (--autolinks) : Enables plain (undelimited) autolinks the way | |
Github-flavoured-Markdown implements them. | |
-o (--tabstop) N : The number of spaces in a tab. Zero and negative values | |
are ignored. | |
-p (--smartypants) : Convenience extension enabling both, --smarts and | |
--quotes, at once. | |
-q (--quotes) : Beautifys single quotes, double quotes and double angle | |
quotes (« and »). | |
-s (--smarts) : Beautifys apostrophes, ellipsises ("..." and ". . .") | |
and dashes ("--" and "---"). | |
-t (--tables) : Enables support for tables similar to MultiMarkdown | |
(which is in turn like the PHP Markdown Extra tables, | |
but with colspan support). | |
-w (--hardwraps) : Enables alternative handling of newlines, see | |
Github-flavoured-Markdown. |
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
$ pwd | |
/usr/local/lib/pegdown-cli | |
$ ls -l | |
total 548 | |
-rw-r--r-- 1 ana ana 60058 Dec 3 20:02 args4j.jar | |
-rw-r--r-- 1 root root 20383 Oct 12 09:52 asm-analysis.jar | |
-rw-r--r-- 1 root root 47895 Oct 12 09:52 asm.jar | |
-rw-r--r-- 1 root root 22591 Oct 12 09:52 asm-tree.jar | |
-rw-r--r-- 1 root root 38081 Oct 12 09:52 asm-util.jar | |
-rw-r--r-- 1 root root 187091 Dec 3 20:02 parboiled-core.jar | |
-rw-r--r-- 1 root root 83772 Dec 3 20:02 parboiled-java.jar | |
-rw-r--r-- 1 root root 5571 Dec 3 20:02 pegdown-cli.jar | |
-rw-r--r-- 1 ana ana 66676 Dec 3 20:15 pegdown.jar |
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
#!/bin/sh | |
java -jar /usr/local/lib/pegdown-cli/pegdown-cli.jar $* |
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
Versions: | |
args4j 2.0.21 | |
http://maven.jenkins-ci.org/content/repositories/releases/args4j/args4j/2.0.21/args4j-2.0.21.jar | |
asm 4.2.0 | |
http://download.forge.ow2.org/asm/asm-4.2-bin.zip | |
parboiled 1.1.6 | |
http://repo1.maven.org/maven2/org/parboiled/parboiled-core/1.1.6/parboiled-core-1.1.6.jar | |
http://repo1.maven.org/maven2/org/parboiled/parboiled-java/1.1.6/parboiled-java-1.1.6.jar | |
pegdown-cli 0.1.3 | |
http://code.pi.co.ua/pegdown-cli/downloads/pegdown-cli-0.1.3.jar | |
pegdown 1.4.1 | |
http://repo1.maven.org/maven2/org/pegdown/pegdown/1.4.1/pegdown-1.4.1.jar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment