code snippets and miscellaneous notes related to plan 9. everything is public domain. who caaares
files:
- cae.c - caesar cipher
- go/ - notes on using go and related stuff
- iconinit.c - set wallpaper
- mam - shortcut, open a manpage in
sam - shub - shortcut script for downloading from shithub.us
As far as I'm aware, there's no built-in markdown command on Plan 9, but a C implementation of Markdown is available, and it compiles on Plan 9 just fine. I threw together a crappy little Go program that would spit out Markdown files for me before I knew this.
hget https://www.pell.portland.or.us/~orc/Code/discount/discount-3.0.1.2.tar.bz2 | bunzip2 | tar x
cd discount-3.0.1.2/Plan9
mk
../markdown # type some stuff to test it out and then hit ^D
mk install
Since page(1) can read HTML, you can read Markdown files right in a terminal after this by typing markdown file.md|page.
Note that it doesn't quite read the language the same as something like GitHub, and some formatting may look weird.
For example you need to type markdown -f fencedcode instead of just markdown for any Markdown document that has code blocks in it, like this one does.
If you want more consistent behavior you can still use my crappy Go version.
Honestly, if you plan to write anything that you expect people to read on a Plan 9 system, learn to use troff(1) and stick to that.