Added support for custom class for markdown and raw-html widgets