Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/carta-md/src/lib/internal/components/Input.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@
const html = speculativeHighlightUpdate(currentlyHighlightedValue, value, currentOverlay);
currentlyHighlightedValue = value;

return { html, timestamp };
if (carta.sanitizer) {
return { html: carta.sanitizer(html), timestamp };
} else {
return { html, timestamp };
}
} catch (e) {
console.error(`Error executing speculative update: ${e}.`);
// The overlay still holds the previous text, but the debounced highlight is already
Expand Down
Loading