removing extra brackets from the markdown