How to change the markup created by menu item only on chosen items?

OK this one is solved. I actually created a separate items that can be dragged in as a link, but are actually hard coded pieces of markup with adequate classes.