Files
short/src/web/lib/markdown.ts
T
traberphandClaude Opus 5.5 3929ed7663 Redesign the admin UI
Replaces the single-page dashboard with a structured app shell:
sidebar on desktop, bottom tab bar on mobile (PWA), and separate
screens for overview, short links, link pages, API tokens and
administration.

- detail view with tabs: content, appearance, analytics, QR code,
  settings
- small component kit (buttons, form controls, cards, dialogs,
  toasts, tabs) built on semantic color tokens with light and dark
  mode following the system
- native <dialog> modals for creating pages, editing blocks and
  confirmations instead of window.confirm
- theme presets and a live preview of unsaved appearance changes
- removed the v1 screenshots for now

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 14:21:07 +02:00

9 lines
268 B
TypeScript

// Rough plain-text version of Markdown for compact previews in the editor.
export function stripMarkdown(markdown: string): string {
return markdown
.replace(/\[([^\]]*)\]\([^)]*\)/g, "$1")
.replace(/[*_`#>~]/g, "")
.replace(/\s+/g, " ")
.trim();
}