fix(ui): plain text for the plan's title on the approval card

This commit is contained in:
sam committed 2026-10-25 00:17:27 +11:00
1 parent a9beb62150
commit 4dfc61d7bf
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ const emit = defineEmits<{ done: [] }>();
const plan = computed(() => props.task.plan?.trim() ?? "");
// A plan's own heading names what is being decided; the card shows it once.
const heading = computed(() => plan.value.match(/^#{1,3}\s+(.+)$/m)?.[1]?.trim() ?? "");
const heading = computed(() => plan.value.match(/^#{1,3}\s+(.+)$/m)?.[1]?.replace(/[`*_]/g, "").trim() ?? "");
const body = computed(() =>
heading.value ? plan.value.replace(/^#{1,3}\s+.+$/m, "").trim() : plan.value,
);