mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Also render ~~strikethrough~~ in titles
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user