Don't preserve line breaks in inline code

Closes #19323.
Merge pull request #19727 from lfairy/patch-1

Don't preserve line breaks in inline code

Reviewed-by: alexcrichton