From 42ab1462eaeffe1a50c3975137919ee965f4e07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C5=ABdolfs=20O=C5=A1i=C5=86=C5=A1?= Date: Fri, 7 Feb 2025 13:23:46 -0600 Subject: [PATCH] Also render ~~strikethrough~~ in titles --- src/components/InlineTitle.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/InlineTitle.svelte b/src/components/InlineTitle.svelte index e1378d9d2..88e5d5bdd 100644 --- a/src/components/InlineTitle.svelte +++ b/src/components/InlineTitle.svelte @@ -10,7 +10,9 @@ const { content, fontSize = "small" }: Props = $props(); function formatInlineTitle(input: string): string { - return input.replaceAll(/`([^`]+)`/g, "$1"); + return input + .replaceAll(/`([^`]+)`/g, "$1") + .replaceAll(/~~([^~~]+)~~/g, "$1"); }