The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
feat: render markdown in place descriptions, notes and reservations
Mauricebe57b7130fee
diff --git a/client/src/components/Planner/DayPlanSidebar.tsx b/client/src/components/Planner/DayPlanSidebar.tsxindex 6081b728c..38c61ffd0 100644--- a/client/src/components/Planner/DayPlanSidebar.tsx+++ b/client/src/components/Planner/DayPlanSidebar.tsx@@ -12,6 +12,8 @@ import { downloadTripPDF } from '../PDF/TripPDF'import { calculateRoute, generateGoogleMapsUrl, optimizeRoute } from '../Map/RouteCalculator'import PlaceAvatar from '../shared/PlaceAvatar'import { useContextMenu, ContextMenu } from '../shared/ContextMenu'+import Markdown from 'react-markdown'+import remarkGfm from 'remark-gfm'import WeatherWidget from '../Weather/WeatherWidget'import { useToast } from '../shared/Toast'import { getCategoryIcon } from '../shared/categoryIcons'@@ -1331,7 +1333,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar({{note.text}</span>{note.time && (- <div style={{ fontSize: 10.5, fontWeight: 400, color: 'var(--text-faint)', lineHeight: '1.3', marginTop: 2, wordBreak: 'break-word' }}>{note.time}</div>+ <div className="collab-note-md" style={{ fontSize: 10.5, fontWeight: 400, color: 'var(--text-faint)', lineHeight: '1.3', marginTop: 2, wordBreak: 'break-word' }}><Markdown remarkPlugins={[remarkGfm]}>{note.time}</Markdown></div>)}</div>{canEditDays && <div className="note-edit-buttons" style={{ display: 'flex', gap: 1, flexShrink: 0, opacity: isNoteHovered ? 1 : 0, transition: 'opacity 0.15s' }}>@@ -1610,7 +1612,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar({{res.notes && (<div style={{ padding: '8px 10px', background: 'var(--bg-tertiary)', borderRadius: 8 }}><div style={{ fontSize: 9, fontWeight: 600, color: 'var(--text-faint)', textTransform: 'uppercase', letterSpacing: '0.03em', marginBottom: 3 }}>{t('reservations.notes')}</div>- <div style={{ fontSize: 12, color: 'var(--text-primary)', whiteSpace: 'pre-wrap', wordBreak: 'break-word' }}>{res.notes}</div>+ <div className="collab-note-md" style={{ fontSize: 12, color: 'var(--text-primary)', wordBreak: 'break-word' }}><Markdown remarkPlugins={[remarkGfm]}>{res.notes}</Markdown></div></div>)}diff --git a/client/src/components/Planner/PlaceInspector.tsx b/client/src/components/Planner/PlaceInspector.tsxindex 6b7818211..05b76fd3e 100644--- a/client/src/components/Planner/PlaceInspector.tsx+++ b/client/src/components/Planner/PlaceInspector.tsx@@ -5,6 +5,8 @@ function authUrl(url: string): string {if (!token || !url) return urlreturn `${url}${url.includes('?') ? '&' : '?'}token=${token}`}+import Markdown from 'react-markdown'+import remarkGfm from 'remark-gfm'import { X, Clock, MapPin, ExternalLink, Phone, Euro, Edit2, Trash2, Plus, Minus, ChevronDown, ChevronUp, FileText, Upload, File, FileImage, Star, Navigation, Users, Mountain, TrendingUp } from 'lucide-react'import PlaceAvatar from '../shared/PlaceAvatar'import { mapsApi } from '../../api/client'@@ -345,10 +347,8 @@ export default function PlaceInspector({{/* Description / Summary */}{(place.description || place.notes || googleDetails?.summary) && (- <div style={{ background: 'var(--bg-hover)', borderRadius: 10, overflow: 'hidden' }}>- <p style={{ fontSize: 12, color: 'var(--text-muted)', margin: 0, lineHeight: '1.5', padding: '8px 12px' }}>- {place.description || place.notes || googleDetails?.summary}- </p>+ <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 || place.notes || googleDetails?.summary || ''}</Markdown></div>)}@@ -397,7 +397,7 @@ export default function PlaceInspector({</div>)}</div>- {res.notes && <div style={{ padding: '0 10px 6px', fontSize: 10, color: 'var(--text-faint)', lineHeight: 1.4 }}>{res.notes}</div>}+ {res.notes && <div className="collab-note-md" style={{ padding: '0 10px 6px', fontSize: 10, color: 'var(--text-faint)', lineHeight: 1.4 }}><Markdown remarkPlugins={[remarkGfm]}>{res.notes}</Markdown></div>}{(() => {const meta = typeof res.metadata === 'string' ? JSON.parse(res.metadata || '{}') : (res.metadata || {})if (!meta || Object.keys(meta).length === 0) return null