Format conversion: Difference between revisions
No edit summary |
adds pandoc example to mediawiki |
||
| Line 120: | Line 120: | ||
Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. It can read markdown and (subsets of) reStructuredText, HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, LaTeX, ConTeXt, Docbook XML, OpenDocument XML, GNU Texinfo, RTF, ODT, MediaWiki markup, groff man pages, and [[Presentation|S5 HTML slide shows]]. | Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. It can read markdown and (subsets of) reStructuredText, HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, LaTeX, ConTeXt, Docbook XML, OpenDocument XML, GNU Texinfo, RTF, ODT, MediaWiki markup, groff man pages, and [[Presentation|S5 HTML slide shows]]. | ||
Or more simply, Pandoc rocks the free world! | |||
To convert an HTML document to MediaWiki syntax, you can simply issue a command like | |||
<source lang="bash"> | |||
pandoc --from html --to mediawiki foo.html --output foo.wiki.txt | |||
</source> | |||
== Other == | == Other == | ||