mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
feat: support Telegram HTML formatting in privacy/offer content
- Fix formatContent to handle mixed content (inline HTML + newlines) - Only skip paragraph conversion for content with block-level HTML - Add sanitizer support for <s>, <del>, <ins>, <tg-spoiler> - Add prose styles for underline, strikethrough, and spoiler tags - Light theme variants included
This commit is contained in:
@@ -853,6 +853,19 @@ img.twemoji {
|
||||
@apply italic text-dark-300;
|
||||
}
|
||||
|
||||
.prose u {
|
||||
@apply underline underline-offset-2;
|
||||
}
|
||||
|
||||
.prose s,
|
||||
.prose del {
|
||||
@apply text-dark-400 line-through;
|
||||
}
|
||||
|
||||
.prose tg-spoiler {
|
||||
@apply cursor-pointer rounded bg-dark-600 px-1 text-transparent transition-colors hover:bg-transparent hover:text-dark-200;
|
||||
}
|
||||
|
||||
.prose blockquote {
|
||||
@apply my-4 rounded-r-lg border-l-4 border-accent-500/50 bg-dark-800/30 py-2 pl-4 italic text-dark-300;
|
||||
}
|
||||
@@ -929,6 +942,15 @@ img.twemoji {
|
||||
@apply text-champagne-700;
|
||||
}
|
||||
|
||||
.light .prose s,
|
||||
.light .prose del {
|
||||
@apply text-champagne-500;
|
||||
}
|
||||
|
||||
.light .prose tg-spoiler {
|
||||
@apply bg-champagne-300 text-transparent hover:bg-transparent hover:text-champagne-800;
|
||||
}
|
||||
|
||||
.light .prose blockquote {
|
||||
@apply border-champagne-400 bg-champagne-100/50 text-champagne-700;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user