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