Dodanie title 2/2, Poprawki w ładowaniu map Google, poprwka w linach modal dla title
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user