Skip to content

Commit dc2c9ab

Browse files
committed
remove workaround for zuchka/remove-markdown#52
1 parent 69d33c2 commit dc2c9ab

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/components/BaseProposalItem.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ const props = defineProps<{
1313
space: ExtendedSpace;
1414
}>();
1515
16-
// shortening to twice the allowed character limit (140*2) before removing markdown
17-
// due to a bug in remove-markdown: https://github.com/stiang/remove-markdown/issues/52
18-
// until this is fixed we need to avoid applying that function to very long texts with a lot of markdown
19-
// see also: BaseProposalPreviewItem.vue
20-
const body = computed(() => removeMd(shorten(props.proposal.body, 280)));
16+
const body = computed(() => removeMd(props.proposal.body));
2117
2218
const winningChoice = computed(() =>
2319
props.proposal.scores.indexOf(Math.max(...props.proposal.scores))

src/components/BaseProposalPreviewItem.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ const props = defineProps<{
1717
profiles: { [key: string]: { ens: string; name?: string; about?: string } };
1818
}>();
1919
20-
// shortening to twice the allowed character limit (140*2) before removing markdown
21-
// due to a bug in remove-markdown: https://github.com/stiang/remove-markdown/issues/52
22-
// until this is fixed we need to avoid applying that function to very long texts with a lot of markdown
23-
// see also: BaseProposalItem.vue
24-
const body = computed(() => removeMd(shorten(props.proposal.body, 280)));
20+
const body = computed(() => removeMd(props.proposal.body));
2521
2622
const winningChoice = computed(() =>
2723
props.proposal.scores.indexOf(Math.max(...props.proposal.scores))

0 commit comments

Comments
 (0)