Also render ~~strikethrough~~ in titles

This commit is contained in:
Rūdolfs Ošiņš
2025-02-07 13:23:46 -06:00
parent 0817e694ac
commit 42ab1462ea
+3 -1
View File
@@ -10,7 +10,9 @@
const { content, fontSize = "small" }: Props = $props();
function formatInlineTitle(input: string): string {
return input.replaceAll(/`([^`]+)`/g, "<code>$1</code>");
return input
.replaceAll(/`([^`]+)`/g, "<code>$1</code>")
.replaceAll(/~~([^~~]+)~~/g, "<del>$1</del>");
}
</script>