Align Markdown table column separators

This commit is contained in:
Jatin Sanghvi 2023-02-17 11:11:41 +05:30
parent 2efd075803
commit dee2dc3777

View file

@ -214,7 +214,7 @@ class ToTable extends Operation {
output += outputRow(row, longestCells);
let rowOutput = verticalBorder;
row.forEach(function(cell, index) {
rowOutput += " " + headerDivider + " " + verticalBorder;
rowOutput += " " + headerDivider.repeat(longestCells[index]) + " " + verticalBorder;
});
output += rowOutput += "\n";