in reply to Converting custom mark-up to HTML

Take a look at html::parse