Public
Edited
Jul 12, 2023
Insert cell
viewof file = Inputs.file({label: "csv with .md tables", required: true})
Insert cell
Insert cell
viewof column = Inputs.select(list.columns, {label: "Select a column from your data"})
Insert cell
list[0].output
Insert cell
data = list.map(d=>{
const md = d[column];
const regex = /<br>- /ig;
let result = md;
result = result.replaceAll(/<br>- /ig, ';')
result = result.replaceAll(/\| - /ig, '| ')
result = result.replaceAll(/^- /ig, ';')
return result
})
Insert cell
data.toString()
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more