Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Preserve longDescription paragraphs in Markdown #178

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LachyTech
Copy link

@LachyTech LachyTech commented Aug 21, 2024

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: #177

HTML Preview
image

markdown preview:
image

This patch preserves paragraphs entered in the longDescription field by
converting each line to <p> element 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.
Copy link

vercel bot commented Aug 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant