diff --git a/webapp/src/lib/marked/renderers/Callout.svelte b/webapp/src/lib/marked/renderers/Callout.svelte index 7668483..df72db9 100644 --- a/webapp/src/lib/marked/renderers/Callout.svelte +++ b/webapp/src/lib/marked/renderers/Callout.svelte @@ -15,6 +15,11 @@ type = match[1]?.trim(); title = match[2]?.trim() ?? ''; } + // Remove title from content + const pos = titleElement.innerHTML.indexOf('
'); + if (pos >= 0) { + titleElement.innerHTML = titleElement.innerHTML.substring(pos + 4); + } }