IIRC it's not replacing the lignin -- the lignin are the tubes that give wood rigidity. This process removes what is inside the lignin with resin.
Also, the article specifically says that these processes will usually remove the lignin to make the result transparent.