Modify '<<', '>>' and [ref] tags parsing.