User:Cclark5189: Difference between revisions
Jump to navigation
Jump to search
Cclark5189 (talk | contribs) mNo edit summary |
Cclark5189 (talk | contribs) mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| 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 == | |||
<code>wget 'https://hhacker.space/wiki/index.php?title=Equipment&action=raw' -o Equipment.wiki</code> | |||
<code>pandoc -f mediawiki -t markdown_mmd Equipment.wiki -o Equipment.md</code> | |||
<span id="edit"></span> | |||
== Edit == | |||
<span id="linuxtext-edit"></span> | |||
=== Linux/Text edit === | |||
<pre>Linux emacs editor has a markdown mode that seems to work fine. You must install the package first</pre> | |||
<span id="excel-or-libreoffice"></span> | |||
=== Excel or LibreOffice === | |||
<pre>LibreOffice Writer read and writes *markdown* format files. Tables seem to work, things like code blocks do not.</pre> | |||
<span id="push"></span> | |||
== Push == | |||
<code>pandoc -f markdown_mmd -t mediawiki Equipment.md -o Equipment.wiki</code> | |||
Right now just copy/paste to the wiki edit page, I haven't spent time on remote file update | |||
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