Created
April 11, 2013 18:02
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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