fix: Preserve longDescription paragraphs in Markdown
This patch preserves paragraphs entered in the longDescription field by converting each line to <p> elements in HTML, which is converted to a paragraph in markdown via the touchdown service.
Only lines with non-whitespace characters are displayed in the preview.
I considered enclosing the longDescription field in <pre> tags as a simpler approach but single linebreaks wouldn't appear as paragraphs in markdown which is counter-intutive for a non-markdown user.
Related issue: https://github.com/danielcranney/profileme-dev/issues/177
HTML Preview
markdown preview:
@LachyTech is attempting to deploy a commit to the danielcranney's projects Team on Vercel.
A member of the Team first needs to authorize it.