git.iko.soy/typeable/pandoc
on master help sign in
Improvements in website:
8c98a36fiddlosopher
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 @@
2<ul>
2<ul>
3<li><a href="index.html" title="Home page">Home</a></li>
3<li><a href="index.html" title="Home page">Home</a></li>
4<li><a href="README.html" title="Pandoc documentation">README</a></li>
4<li><a href="README.html" title="Pandoc documentation">README</a></li>
5+<li><a href="features.html" title="Pandoc features">Features</a></li>
5<li><a href="examples.html" title="Pandoc demos">Examples</a></li>
6<li><a href="examples.html" title="Pandoc demos">Examples</a></li>
6<li><a href="doc/index.html" title="API documentation for Pandoc libraries">API</a></li>
7<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>
8</ul>
9</ul>
9</div>
10</div>
10<div id="main" class="withleftmenu">
11<div id="main" class="withleftmenu">
web/mkdemos.sh+21−3
@@ -8,17 +8,29 @@ PROGPATH=$2
8
8
9NEWLINE='
9NEWLINE='
10'
10'
11+EXAMPLES='HTML fragment:
11−EXAMPLES='pandoc README -o example0.html
12+pandoc README -o example0.html
13+Standalone HTML file:
12pandoc -s -S README -o example0.html
14pandoc -s -S README -o example0.html
15+HTML with smart quotes, CSS, and custom header and footer:
13pandoc -s -S -c main.css -B header.html -A footer.html README -o example0.html
16pandoc -s -S -c main.css -B header.html -A footer.html README -o example0.html
17+LaTeX:
14pandoc -s README -o example0.tex
18pandoc -s README -o example0.tex
19+From LaTeX to markdown:
15pandoc -s README.tex -o example0.txt
20pandoc -s README.tex -o example0.txt
21+reStructuredText:
16pandoc -s -w rst README -o example0.txt
22pandoc -s -w rst README -o example0.txt
23+Rich text format (RTF):
17pandoc -s README -o example0.rtf
24pandoc -s README -o example0.rtf
25+S5 HTML slide show (all in one file):
18pandoc -s -m -i -w s5 S5DEMO -o example0.html
26pandoc -s -m -i -w s5 S5DEMO -o example0.html
27+Docbook XML:
19pandoc -s -w docbook README -o example0.db
28pandoc -s -w docbook README -o example0.db
29+Converting a web page to markdown:
20html2markdown http://www.gnu.org/software/make/ -o example0.txt
30html2markdown http://www.gnu.org/software/make/ -o example0.txt
31+From markdown to PDF:
21markdown2pdf README -o example0.pdf
32markdown2pdf README -o example0.pdf
33+Using a custom LaTeX header to change the font style of the PDF:
22markdown2pdf -C myheader.tex README -o example0.pdf'
34markdown2pdf -C myheader.tex README -o example0.pdf'
23
35
24oldifs=$IFS
36oldifs=$IFS
@@ -35,14 +47,20 @@ click on the name of the output file:
35
47
36'
48'
37num=0
49num=0
38−for command in "$@"; do
50+while [ $# -gt 0 ]; do
51+ description="$1"
52+ command="$2"
39 num=$(($num + 1))
53 num=$(($num + 1))
40 command=$(echo $command | sed -e "s/0/$num/")
54 command=$(echo $command | sed -e "s/0/$num/")
41 firstpart=$(echo $command | sed -e 's/\(.*\) [^ ]* -o.*/\1/')
55 firstpart=$(echo $command | sed -e 's/\(.*\) [^ ]* -o.*/\1/')
42 input=$(echo $command | sed -e 's/.* \([^ ]*\) -o.*/\1/')
56 input=$(echo $command | sed -e 's/.* \([^ ]*\) -o.*/\1/')
43 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')
57 output=$(echo $command | sed -e 's/.*-o \(.*\)/\1/')
58+ echo "1. $description"
59+ echo
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>"
60+ echo " <code>$firstpart <a href=\""$input"\" title=\""View input file"\">$input</a> -o <a href=\""$output"\" title=\""View pandoc output"\">$output</a></code>"
45 echo $command >&2
61 echo $command >&2
46 result=$(PATH=$PROGPATH:$PATH $command) # run the command and create output file
62 result=$(PATH=$PROGPATH:$PATH $command) # run the command and create output file
63+ shift
64+ shift
47done
65done
48
66