<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://actinobase.org/index.php?action=history&amp;feed=atom&amp;title=Using_pandoc</id>
	<title>Using pandoc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://actinobase.org/index.php?action=history&amp;feed=atom&amp;title=Using_pandoc"/>
	<link rel="alternate" type="text/html" href="https://actinobase.org/index.php?title=Using_pandoc&amp;action=history"/>
	<updated>2026-10-17T21:21:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://actinobase.org/index.php?title=Using_pandoc&amp;diff=1481&amp;oldid=prev</id>
		<title>LeightonP: add page describing use of pandoc to convert Word documents to MediaWiki format</title>
		<link rel="alternate" type="text/html" href="https://actinobase.org/index.php?title=Using_pandoc&amp;diff=1481&amp;oldid=prev"/>
		<updated>2019-10-25T14:08:02Z</updated>

		<summary type="html">&lt;p&gt;add page describing use of pandoc to convert Word documents to MediaWiki format&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
MediaWiki pages are edited using a specific syntax, which can take a while to get the hang of. It is, however, possible to write your pages in a word processor, such as Microsoft Word, and use a tool like pandoc to convert the article to MediaWiki format for you. This can be much less painful (and help in understanding how MediaWiki formatting works).&lt;br /&gt;
&lt;br /&gt;
This page aims to guide you through the process of obtaining and using pandoc to convert a page written in Microsoft Word to MediaWiki format, so it can be copy/pasted directly into the wiki.&lt;br /&gt;
&lt;br /&gt;
= Installing Pandoc =&lt;br /&gt;
&lt;br /&gt;
* [https://pandoc.org/ pandoc home page]&lt;br /&gt;
&lt;br /&gt;
Pandoc works on Microsoft Windows, macOS, and Linux. Installer packages for pandoc can be found at the releases page:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/jgm/pandoc/releases/tag/2.7.3 pandoc v2.7.3 releases page]&lt;br /&gt;
&lt;br /&gt;
To install pandoc, download the installer for your operating system, and double-click on it to run. Follow the instructions on-screen.&lt;br /&gt;
&lt;br /&gt;
= Using Pandoc =&lt;br /&gt;
&lt;br /&gt;
Pandoc is a tool designed to convert documents from one format to another. This tool is used by typing at the command-line/terminal, and the usual command structure is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
pandoc -f &amp;lt;INPUT_FORMAT&amp;gt; -t &amp;lt;OUTPUT_FORMAT&amp;gt; -o &amp;lt;OUTPUT_FILENAME&amp;gt; &amp;lt;INPUT_FILENAME&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Pandoc can convert between a wide range of formats, and as an example, we&amp;#039;ll use a small Microsoft Word document with some header and list structures as input.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
* [[File:Example_word_file.png|200px|thumb|left|Input Word file]]&lt;br /&gt;
&lt;br /&gt;
To convert this file to MediaWiki format, use the following command from the same directory as the Word file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
pandoc -f docx -t mediawiki -o example.txt example.docx&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The output from the conversion (written out into &amp;lt;code&amp;gt;example.txt&amp;lt;/code&amp;gt; looks like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
= This is a top-level header =&lt;br /&gt;
&lt;br /&gt;
And this is some text that goes under our top-level heading.&lt;br /&gt;
&lt;br /&gt;
== Here’s a subheading ==&lt;br /&gt;
&lt;br /&gt;
There are some things relevant to the subheading. Let’s list them&lt;br /&gt;
&lt;br /&gt;
# Item 1&lt;br /&gt;
# Item 2&lt;br /&gt;
# Item 4 (item 3 is unavailable)&lt;br /&gt;
&lt;br /&gt;
We could put these in a table:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
! Thing&lt;br /&gt;
! Number&lt;br /&gt;
! Available?&lt;br /&gt;
|-&lt;br /&gt;
| Item&lt;br /&gt;
| 1&lt;br /&gt;
| Yes&lt;br /&gt;
|-&lt;br /&gt;
| Item&lt;br /&gt;
| 2&lt;br /&gt;
| Yes&lt;br /&gt;
|-&lt;br /&gt;
| Item&lt;br /&gt;
| 3&lt;br /&gt;
| No&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and when copied and pasted into the wiki, renders like this:&lt;br /&gt;
&lt;br /&gt;
= This is a top-level header =&lt;br /&gt;
&lt;br /&gt;
And this is some text that goes under our top-level heading.&lt;br /&gt;
&lt;br /&gt;
== Here’s a subheading ==&lt;br /&gt;
&lt;br /&gt;
There are some things relevant to the subheading. Let’s list them&lt;br /&gt;
&lt;br /&gt;
# Item 1&lt;br /&gt;
# Item 2&lt;br /&gt;
# Item 4 (item 3 is unavailable)&lt;br /&gt;
&lt;br /&gt;
We could put these in a table:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
! Thing&lt;br /&gt;
! Number&lt;br /&gt;
! Available?&lt;br /&gt;
|-&lt;br /&gt;
| Item&lt;br /&gt;
| 1&lt;br /&gt;
| Yes&lt;br /&gt;
|-&lt;br /&gt;
| Item&lt;br /&gt;
| 2&lt;br /&gt;
| Yes&lt;br /&gt;
|-&lt;br /&gt;
| Item&lt;br /&gt;
| 3&lt;br /&gt;
| No&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>LeightonP</name></author>
	</entry>
</feed>