Radish alpha
r
Radicle desktop app
Radicle
Git (anonymous pull)
Log in to clone via SSH
Also render ~~strikethrough~~ in titles
Rūdolfs Ošiņš committed 1 year ago
commit 42ab1462eaeffe1a50c3975137919ee965f4e07a
parent 0817e694ac102852de4b18bf0caa8b327dcac7b0
1 file changed +3 -1
modified src/components/InlineTitle.svelte
@@ -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>