Use case or problem
Tables in markdown are messy, and sometimes hard to keep straight. JSON is cleaner and machine-readable and ubiquitous for storing data. Combining JSON’s structured data and Obsidian’s ability to render markdown, this combo is a winner.
Proposed solution
Following the pattern of Gitlab, allow rendering of json code blocks as tables using the syntax below.
{
"a": "11",
"b": "22",
"c": "33"
}
renders as
a | b | c |
---|---|---|
11 | 22 | 33 |
See these two references:
Current workaround (optional)
I mostly make tables from memory, but if it has been a while I will use an external resource like tablesgenerator.com, or tableconvert.com. I am sure there are addons that make tables easier, but it only eases the burden, it doesn’t fix the underlying problem that markdown isn’t well suited to holding data sets.
Related feature requests (optional)
NONE