add markdown api with preview and printable