mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
Fixing some eslint and JSDoc issues
This commit is contained in:
parent
126debf44e
commit
8e57354307
1 changed files with 7 additions and 2 deletions
|
@ -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 = "|";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue