This part of the docs is a little scary:

> Returns the raw content of the file by default (warning: this may be browser-specific)

It makes it sound like if you just `exportFile()` you'll get a browser specific export, which isn't true. Also, I have no idea how I missed this, but the types aren't listed. No mention that it supports HTML output! 

Maybe this should read:

> Returns the plain text of the file by default, or if given a `type` will return the content in the specified type. If you leave both parameters `null` it will return the current document's content in plain text. The export file types are:
>
> - text _(default)_
> - html
> - raw _(warning: this is browser specific!)_