Use the raw text when creating a highlight node instead of the escaped text. This means \n spaces will be preserved in the node and prevent spaces from being removed.
Use the raw text when creating a highlight node instead of the escaped text. This means \n spaces will be preserved in the node and prevent spaces from being removed.