profileme-dev icon indicating copy to clipboard operation
profileme-dev copied to clipboard

fix: Preserve longDescription paragraphs in Markdown

Open LachyTech opened this issue 1 year ago • 1 comments

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 image

markdown preview: image

LachyTech avatar Aug 21 '24 15:08 LachyTech

@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.

vercel[bot] avatar Aug 21 '24 15:08 vercel[bot]