git.iko.soy/typeable/pandoc
on master help sign in
Improvements in website:

+ Descriptions on examples. + New "features" page highlighting Pandoc's features. + Small other improvements. git-svn-id: https://pandoc.googlecode.com/svn/trunk@466 788f1e2b-df1e-0410-8736-df70ead52e1b

commit8c98a36b33ca2c72c46b099f0fe6945256da22d7 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateTue 9 Jan 2007, 02:06 (20 years ago) parenta428c9f
3 files changed+49−4
web/features.txt+26 web/header.html+2−1 web/mkdemos.sh+21−3
web/features.txtnew file+26
@@ -0,0 +1,26 @@
1+% Pandoc features
2+
3+- A real markdown parser, not based on regex substitutions.
4+- [More accurate] and [faster], in many cases, than `Markdown.pl`.
5+- Multiple output formats--HTML, Docbook XML, LaTeX, reStructuredText,
6+ RTF, S5 slide shows--generated natively, with no XSLT postprocessing.
7+- Converts *to* markdown from HTML, LaTeX, and reStructuredText.
8+- Convenient wrapper scripts:
9+ + `html2markdown` makes it easy to produce a markdown version
10+ of any web page.
11+ + `markdown2pdf` converts markdown to PDF in one step.
12+ + `hsmarkdown` is a drop-in replacement for `Markdown.pl`.
13+- Unicode support.
14+- Support for footnotes.
15+- Support for "smart" quotes, dashes, and ellipses.
16+- Support for document metadata (title, author, date).
17+- Support for inline LaTeX math and [ASCIIMathML].
18+- Support for inline LaTeX commands.
19+- Compatibility mode to turn off syntax entensions and emulate
20+ `Markdown.pl`.
21+- Multi-platform: runs on Windows, MacOS X, Linux, Unix.
22+
23+[More accurate]: http://code.google.com/p/pandoc/wiki/PandocVsMarkdownPl
24+[faster]: http://code.google.com/p/pandoc/wiki/Benchmarks
25+[ASCIIMathML]: http://www1.chapman.edu/~jipsen/mathml/asciimath.html
26+
web/header.html+2−1
@@ -2,9 +2,10 @@
22<ul>
33<li><a href="index.html" title="Home page">Home</a></li>
44<li><a href="README.html" title="Pandoc documentation">README</a></li>
5+<li><a href="features.html" title="Pandoc features">Features</a></li>
56<li><a href="examples.html" title="Pandoc demos">Examples</a></li>
67<li><a href="doc/index.html" title="API documentation for Pandoc libraries">API</a></li>
7−<li><a href="changelog.html" title="Pandoc's changelog">History</a></li>
8+<li><a href="changelog.html" title="Pandoc's changelog">Changelog</a></li>
89</ul>
910</div>
1011<div id="main" class="withleftmenu">
web/mkdemos.sh+21−3
@@ -8,17 +8,29 @@ PROGPATH=$2
88
99NEWLINE='
1010'
11−EXAMPLES='pandoc README -o example0.html
11+EXAMPLES='HTML fragment:
12+pandoc README -o example0.html
13+Standalone HTML file:
1214pandoc -s -S README -o example0.html
15+HTML with smart quotes, CSS, and custom header and footer:
1316pandoc -s -S -c main.css -B header.html -A footer.html README -o example0.html
17+LaTeX:
1418pandoc -s README -o example0.tex
19+From LaTeX to markdown:
1520pandoc -s README.tex -o example0.txt
21+reStructuredText:
1622pandoc -s -w rst README -o example0.txt
23+Rich text format (RTF):
1724pandoc -s README -o example0.rtf
25+S5 HTML slide show (all in one file):
1826pandoc -s -m -i -w s5 S5DEMO -o example0.html
27+Docbook XML:
1928pandoc -s -w docbook README -o example0.db
29+Converting a web page to markdown:
2030html2markdown http://www.gnu.org/software/make/ -o example0.txt
31+From markdown to PDF:
2132markdown2pdf README -o example0.pdf
33+Using a custom LaTeX header to change the font style of the PDF:
2234markdown2pdf -C myheader.tex README -o example0.pdf'
2335
2436oldifs=$IFS
@@ -35,14 +47,20 @@ click on the name of the output file:
3547
3648'
3749num=0
38−for command in "$@"; do
50+while [ $# -gt 0 ]; do
51+ description="$1"
52+ command="$2"
3953 num=$(($num + 1))
4054 command=$(echo $command | sed -e "s/0/$num/")
4155 firstpart=$(echo $command | sed -e 's/\(.*\) [^ ]* -o.*/\1/')
4256 input=$(echo $command | sed -e 's/.* \([^ ]*\) -o.*/\1/')
4357 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')
44− echo "1. <code>$firstpart <a href=\""$input"\" title=\""View input file"\">$input</a> -o <a href=\""$output"\" title=\""View pandoc output"\">$output</a></code>"
58+ echo "1. $description"
59+ echo
60+ echo " <code>$firstpart <a href=\""$input"\" title=\""View input file"\">$input</a> -o <a href=\""$output"\" title=\""View pandoc output"\">$output</a></code>"
4561 echo $command >&2
4662 result=$(PATH=$PROGPATH:$PATH $command) # run the command and create output file
63+ shift
64+ shift
4765done
4866