Fix up rendering to file.

Switch from ioutil.WriteFile to a regular buffered file. Only
postprocess markdown docs.