The parseText function being run on the record descriptions is adding <br> into the href of links when there is a newline immediately following a plain text link.
Example records:
Might be worth looking at how the old app was handling the line breaks here. Converting the newlines into paragraphs/line breaks when applicable is a better approach then putting the entire description into a single paragraph tag as it produces better semantics which is good for both accessibility and SEO. The markdown/link parsing is performed on the items in the array before wrapping in paragraph tags which should also prevent the <br> from being injected into the href.
The parseText function being run on the record descriptions is adding
<br>into the href of links when there is a newline immediately following a plain text link.Example records:
Might be worth looking at how the old app was handling the line breaks here. Converting the newlines into paragraphs/line breaks when applicable is a better approach then putting the entire description into a single paragraph tag as it produces better semantics which is good for both accessibility and SEO. The markdown/link parsing is performed on the items in the array before wrapping in paragraph tags which should also prevent the
<br>from being injected into the href.