non destructive behaviour for shortcode transformation to index and back