update setting for markdown, rst preview

* use shareboard for previewing
* detect filetype additionally on its extension
* fix pandoc command
* update CSS style for generated HTML