Hello,
In a response I receive from AIP, the content within a table needs to have line breaks to separate items in a list format. Without them, the readability is poor, and it’s difficult for users to read the content.
In other Markdown environments, I would use the
tag for a line break, but I understand this is not possible because the Foundry Markdown widget does not support HTML rendering.
Is there any workaround for this?
If there’s currently no way to achieve this, please consider adding this functionality. It would greatly improve the readability of tables.
Thank you.
Hi there,
If you are joining all of your results to a string with a new line between, try with two new lines instead of one (‘\n\n’).
I tried it, but the table is still broken.
-
1st try (enter once)
| 헤더1 | 헤더2 | 헤더3 |
|-------|-------|-------|
| 내용1 | 내용2 | 내
용3 |
| 내용4 | 내용5 | 내용6 | -
2nd try (enter twice)
| 헤더1 | 헤더2 | 헤더3 |
|-------|-------|-------|
| 내용1 | 내용2 | 내
용3 |
| 내용4 | 내용5 | 내용6 |
- edit metadata (\n\n)
{
“type”: “markdown”,
“markdown”: {
“type”: “configV6”,
“configV6”: {
“content”: {
“type”: “stringContent”,
“stringContent”: {
“content”: “| 헤더1 | 헤더2 | 헤더3 |\n|-------|-------|-------|\n| 내용1 | 내용2 | 내\n\n용3 |\n| 내용4 | 내용5 | 내용6 |”
}
},
“tags”: {
“type”: “none”,
“none”: {}
},
“enableMonospaceFont”: false,
“enableScrolling”: true
}
}
}
Thanks for sharing this, that made your problem easier to understand.
I’m afraid there isn’t a good way of doing this in MarkDown, as block-level elements can’t be inserted into tables in pure MarkDown.
My suggestion would be to write a parsing function, that takes the output and basically creates an additional row with the data in it.
See the example below and let me know if that could work for your solution.
| month | items |
|---|---|
| January | Clean up after NY party |
| | Sign up for a gym |
| | Make better resolutions for next year |
| February | Go to Scandinavia and eat pastries
| | etc...