Internet plus Telewizja, dodanie modal, poprawki w Markdown
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user