Add share URL builders and embed format helpers for uploaded images.

Centralize clearnet/onion paths, delete links, and BBCode/Markdown/HTML output with unit tests and escape-html for safe HTML snippets.
This commit is contained in:
2026-10-25 22:00:01 +01:00
parent b4cc26a632
commit 95ed6e5f58
19 changed files with 226 additions and 0 deletions
@@ -0,0 +1 @@
export const buildBbcodeImage = (imageUrl: string): string => `[img]${imageUrl}[/img]`;