fix(ui): plain text for the plan's title on the approval card
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -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,
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user