Skip to content

Instantly share code, notes, and snippets.

@jkubicek
Created April 11, 2013 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkubicek/5365692 to your computer and use it in GitHub Desktop.
Save jkubicek/5365692 to your computer and use it in GitHub Desktop.
Use pandoc to convert github styled markdown files to Wikipedia style wiki pages.
#!/bin/bash
#usage
# mdown-wiki input_file.mdown
#
# Generates a file in the same directory named 'input_file.wiki'
FILENAME="${1%%.*}"
pandoc --from=markdown_github --to=mediawiki --output=$FILENAME.wiki "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment