Fixing some eslint and JSDoc issues

This commit is contained in:
samgbell 2022-10-13 12:03:22 +02:00 committed by GitHub
parent 126debf44e
commit 8e57354307
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,8 +68,7 @@ class ToTable extends Operation {
case "HTML":
return htmlOutput(tableData);
case "Markdown":
return markdownOutput(tableData);
return markdownOutput(tableData);
default:
return htmlOutput(tableData);
}
@ -188,6 +187,12 @@ class ToTable extends Operation {
}
}
/**
* Outputs an array of data as a Markdown table.
*
* @param {string[][]} tableData
* @returns {string}
*/
function markdownOutput(tableData) {
const headerDivider = "-";
const verticalBorder = "|";