2
0
mirror of https://github.com/gchq/CyberChef synced 2026-01-07 02:53:19 +00:00

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

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 = "|";