{"repo":"outofcontrol/mediawiki-to-gfm","free":true,"listed":false,"github":"https://github.com/outofcontrol/mediawiki-to-gfm","clone":"git clone https://github.com/outofcontrol/mediawiki-to-gfm.git","description":"Converts Mediawiki format to Github Flavoured Markdown format","language":"PHP","stars":97,"topics":["gitlab","mediawiki","markdown","converter"],"license":"MIT","category":"productivity","readme_excerpt":"Mediawiki to GitHub Flavoured Markdown Mediawiki to GFM is a script to convert a set of Mediawiki pages to GitHub Flavoured Markdown (GFM). This script was written from a necessity to convert a MediaWiki installation to a GitLab wiki. This code is based on MediaWiki to Markdown by Philip Ashlock. Philip graciously gave us permission to post our version as a new project. Major differences include the addition of PHPUnit tests, code is broken into classes, deprecated code removed, and a fix for a common MediaWiki user error added. Requirements PHP: Requires PHP 8.4 or newer Pandoc: Installation instructions are here https://pandoc.org/installing.html Requires Pandoc 3.9 or newer MediaWiki: https://www.mediawiki.org/wiki/MediaWiki This script operates on a MediaWiki XML export file, not a running MediaWiki installation, so the MediaWiki version does not matter directly. What matters is the export format. It is built for the MediaWiki XML export schema(export-0.10), which has been stable across many MediaWiki releases. Composer: Installation instructions are here https://getcomposer.org/download/ Installation git clone https://github.com/outofcontrol/mediawiki-to-gfm.git cd mediawiki-to-gfm composer update --no-dev Run Run the script on your exported MediaWiki XML file: ./convert.php --filename=/path/to/filename.xml --output=/path/to/converted/files Options ./convert.php --filename=/path/to/filename.xml --output=/path/to/converted/files --format=gfm --addmeta --flatten --indexes ","default_branch":null,"files":null,"tree":[],"storefront":"/r/outofcontrol","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/outofcontrol/mediawiki-to-gfm/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}