User:Cclark5189

From h.h
Jump to navigation Jump to search

Editing Wiki

Making and editing tables in MediaWiki is trash. Here is how to fetch and covert to markdown format, edit locally in a text editor or LibreOffice, then upload the sparkly freshness.

Fetch file

wget 'https://hhacker.space/wiki/index.php?title=Equipment&action=raw' -o Equipment.wiki

pandoc -f mediawiki -t markdown_mmd Equipment.wiki -o Equipment.md

Edit

Linux/Text edit

Linux emacs editor has a markdown mode that seems to work fine. You must install the package first

Excel or LibreOffice

LibreOffice Writer read and writes *markdown* format files. Tables seem to work, things like code blocks do not.

Push

pandoc -f markdown_mmd -t mediawiki Equipment.md -o Equipment.wiki

Right now just copy/paste to the wiki edit page, I haven't spent time on remote file update