Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 8cfa3f2

Browse files
committed
relations as md list
1 parent 4c7cb76 commit 8cfa3f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/cellTypes/RelationCell.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ const RelationCell = (mdProps: CellComponentProps) => {
4747
.map((relation) => {
4848
return relation.markdown();
4949
})
50-
.join(", ");
50+
.join(",");
5151
MarkdownService.renderMarkdown(
5252
defaultCell,
53-
mdRelations,
53+
`[ ${mdRelations} ]`,
5454
containerCellRef.current,
5555
5
5656
);

src/services/MarkdownRenderService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class MarkdownRenderService {
4242
.replaceAll(SUGGESTER_REGEX.TEXT_ARRAY, "$2")
4343
.split(",")
4444
.forEach((item) => {
45-
alternativeString = alternativeString.concat(`- ${item}\n`);
45+
alternativeString = alternativeString.concat(`- ${item.trim()}\n`);
4646
});
4747
markdownString = alternativeString;
4848
}

0 commit comments

Comments
 (0)