add support for data-trim attribute on code elements (closes #419)