attachments: added field 'type'
added ability to use markdown in localization files