Internet plus Telewizja, dodanie modal, poprawki w Markdown

This commit is contained in:
dm
2025-11-22 06:06:07 +01:00
parent c04d63647e
commit ae4b7a04ac
12 changed files with 217 additions and 52 deletions

View File

@@ -49,9 +49,13 @@ export default function FuzMarkdown({ text, ctx = {} }) {
// Konwersja kinków na modal linki
processed = processed.replace(
/\[([^\]]+)\]\(#([^)]+)\)/g,
`<a href="#" class="modal-link text-cyan-600 underline" data-modal="$2">$1</a>`
`<a href="#" class="modal-link" data-modal="$2">$1</a>`
);
// processed = processed.replace(
// /\[([^\]]+)\]\(#([^)]+)\)/g,
// `<button type="button" class="btn btn-outline modal-link" data-modal="$2">$1</button>`
// );
const html = marked(processed);
return (