fix(places): render line breaks in place descriptions

The description field was rendered with remarkGfm only, so single newlines a
user typed in the textarea were collapsed by Markdown. Add remarkBreaks (already
used for notes) so multiline descriptions keep their line breaks.

Closes #957
This commit is contained in:
Maurice
2026-05-25 00:44:16 +02:00
parent e1143f68d4
commit 0bdbf03dd1
@@ -348,7 +348,7 @@ export default function PlaceInspector({
{/* Description / Summary */}
{(place.description || googleDetails?.summary) && (
<div className="collab-note-md" style={{ background: 'var(--bg-hover)', borderRadius: 10, overflow: 'hidden', fontSize: 12, color: 'var(--text-muted)', lineHeight: '1.5', padding: '8px 12px' }}>
<Markdown remarkPlugins={[remarkGfm]}>{place.description || googleDetails?.summary || ''}</Markdown>
<Markdown remarkPlugins={[remarkGfm, remarkBreaks]}>{place.description || googleDetails?.summary || ''}</Markdown>
</div>
)}