Render a predefined string for empty markdown table instead of pipe characters (#1387)
This commit is contained in:
@@ -60,6 +60,11 @@ export async function jsonToMDTable(
|
||||
}
|
||||
}
|
||||
|
||||
// Handle empty case manually, instead of three lines of ||
|
||||
if (headers.size == 0) {
|
||||
return "*(empty table)*";
|
||||
}
|
||||
|
||||
const headerList = [...headers];
|
||||
const lines = [];
|
||||
lines.push(
|
||||
|
||||
Reference in New Issue
Block a user