Updated rendering for the Code Text field.
Added markdown support.
Added error check for media items.