Premium - korekta mail

This commit is contained in:
dm
2025-12-18 07:12:27 +01:00
parent 4674e0ef23
commit 669aea3078
8 changed files with 82 additions and 42 deletions

View File

@@ -53,6 +53,25 @@ export default function FuzMarkdown({ text, ctx = {} }) {
}>${label}</a>`;
}
);
processed = processed.replace(
/\[([^\]]+)\]\("([^"]+)"(?:\s+"([^"]+)")?\s+btn\)/g,
(match, label, href, title) => {
return `
<div class="">
<a
href="${href}"
class="btn btn-primary"
target="_blank"
rel="noopener noreferrer"${title ? ` title="${title}"` : ""}
>
${label}
</a>
</div>`;
}
);
const html = marked(processed);
return (