diff --git a/client/src/components/Planner/DayPlanSidebar.tsx b/client/src/components/Planner/DayPlanSidebar.tsx index 6081b72..38c61ff 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} {note.time && ( -
{note.time}
+
{note.time}
)} {canEditDays &&
@@ -1610,7 +1612,7 @@ const DayPlanSidebar = React.memo(function DayPlanSidebar({ {res.notes && (
{t('reservations.notes')}
-
{res.notes}
+
{res.notes}
)} diff --git a/client/src/components/Planner/PlaceInspector.tsx b/client/src/components/Planner/PlaceInspector.tsx index 6b78182..05b76fd 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 url return `${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) && ( -
-

- {place.description || place.notes || googleDetails?.summary} -

+
+ {place.description || place.notes || googleDetails?.summary || ''}
)} @@ -397,7 +397,7 @@ export default function PlaceInspector({
)}
- {res.notes &&
{res.notes}
} + {res.notes &&
{res.notes}
} {(() => { const meta = typeof res.metadata === 'string' ? JSON.parse(res.metadata || '{}') : (res.metadata || {}) if (!meta || Object.keys(meta).length === 0) return null