Dodanie title 2/2, Poprawki w ładowaniu map Google, poprwka w linach modal dla title

This commit is contained in:
dm
2025-11-23 07:11:17 +01:00
parent e4f47a06a0
commit 65d16575f2
25 changed files with 259 additions and 153 deletions

View File

@@ -48,14 +48,12 @@ export default function FuzMarkdown({ text, ctx = {} }) {
// Konwersja kinków na modal linki
processed = processed.replace(
/\[([^\]]+)\]\(#([^)]+)\)/g,
`<a href="#" class="modal-link" data-modal="$2">$1</a>`
/\[([^\]]+)\]\(#([^) "]+)(?:\s+"([^"]+)")?\)/g,
(match, label, modalId, title) => {
return `<a href="#" class="modal-link" data-modal="${modalId}"${title ? ` title="${title}"` : ""
}>${label}</a>`;
}
);
// processed = processed.replace(
// /\[([^\]]+)\]\(#([^)]+)\)/g,
// `<button type="button" class="btn btn-outline modal-link" data-modal="$2">$1</button>`
// );
const html = marked(processed);
return (