User:Cclark5189: Difference between revisions

From h.h
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
Line 1: Line 1:
= 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.
<span id="fetch-file"></span>
== Fetch file ==
== Fetch file ==



Latest revision as of 17:48, 30 March 2026

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