I don't get why it removes links, but I'm like 99% sure that's intentional so I'll not bother trying to convince you otherwise
but instead of just plain removing line breaks you should turn them into spaces (or better yet preserve them) because that was particularly surprising behavior