@@ -0,0 +1,50 @@
1+% html2x
2+
3+This form uses [pandoc] to convert a web page to markdown,
4+reStructuredText, DocBook XML, LaTeX, RTF, or a unix man page.
5+
6+<form action="/pandoc/html2x.pl" method="get">
7+<p>
8+<label for="url">URL:</label>
9+<input type="text" size="60" name="url" />
10+</p>
11+<p>
12+<label for="format">Format:</label><br/>
13+<input type="radio" name="format" value="markdown" checked="checked" />Markdown<br/>
14+<input type="radio" name="format" value="markdown+" />Markdown with
15+<a href="/pandoc/README.html#pandocs-markdown-vs-standard-markdown">pandoc extensions</a><br/>
16+<input type="radio" name="format" value="rst" />reStructuredText<br/>
17+<input type="radio" name="format" value="docbook" />DocBook XML<br/>
18+<input type="radio" name="format" value="latex" />LaTeX<br/>
19+<input type="radio" name="format" value="context" />ConTeXt<br/>
20+<input type="radio" name="format" value="rtf" />Rich Text Format (RTF)<br/>
21+<input type="radio" name="format" value="man" />Groff man page
22+</p>
23+<input type="submit" value="Convert" /><br/>
24+</form>
25+
26+Javascript bookmarklets (right-click and add bookmark):
27+
28+- [2markdown]
29+- [2markdown+]
30+- [2rst]
31+- [2docbook]
32+- [2LaTeX]
33+- [2ConTeXt]
34+- [2RTF]
35+- [2man]
36+
37+(Inspired by [the Asciinator].)
38+
39+[2markdown]: javascript:location.href='http://johnmacfarlane.net/pandoc/html2x.pl?format=markdown&url='+document.location.href;
40+[2markdown+]: javascript:location.href='http://johnmacfarlane.net/pandoc/html2x.pl?format=markdown+&url='+document.location.href;
41+[2rst]: javascript:location.href='http://johnmacfarlane.net/pandoc/html2x.pl?format=rst&url='+document.location.href;
42+[2docbook]: javascript:location.href='http://johnmacfarlane.net/pandoc/html2x.pl?format=docbook&url='+document.location.href;
43+[2LaTeX]: javascript:location.href='http://johnmacfarlane.net/pandoc/html2x.pl?format=latex&url='+document.location.href;
44+[2ConTeXt]: javascript:location.href='http://johnmacfarlane.net/pandoc/html2x.pl?format=context&url='+document.location.href;
45+[2RTF]: javascript:location.href='http://johnmacfarlane.net/pandoc/html2x.pl?format=rtf&url='+document.location.href;
46+[2man]: javascript:location.href='http://johnmacfarlane.net/pandoc/html2x.pl?format=man&url='+document.location.href;
47+
48+[pandoc]: /pandoc/
49+[the Asciinator]: http://www.aaronsw.com/2002/html2text/
50+