Convert markdown or html text with embed content into a label.