callout remove title

This commit is contained in:
Maxime Cannoodt 2022-06-24 21:33:27 +02:00
parent 2ecd06ece9
commit facb44e198

View File

@ -15,6 +15,11 @@
type = match[1]?.trim();
title = match[2]?.trim() ?? '';
}
// Remove title from content
const pos = titleElement.innerHTML.indexOf('<br>');
if (pos >= 0) {
titleElement.innerHTML = titleElement.innerHTML.substring(pos + 4);
}
}
</script>