From c51bfdeb50e99f50822229acaa5b246a1b2e6702 Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Thu, 3 Feb 2022 06:23:10 +0300 Subject: [PATCH] Update markdown.js --- scripts/core/markdown.js | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/scripts/core/markdown.js b/scripts/core/markdown.js index 3d735b18..2729f0b7 100644 --- a/scripts/core/markdown.js +++ b/scripts/core/markdown.js @@ -3,38 +3,6 @@ const file = require('./file') const markdown = {} -markdown.createTable = function (data, cols) { - let output = '\n' - - output += ' \n ' - for (let column of cols) { - output += `` - } - output += '\n \n' - - output += ' \n' - for (let groupId in data) { - const group = data[groupId] - for (let [i, item] of group.entries()) { - const rowspan = group.length > 1 ? ` rowspan="${group.length}"` : '' - output += ' ' - if (i === 0) { - const name = item.flag ? `${item.flag} ${item.name}` : item.name - output += `` - } - output += `` - output += `` - output += `` - output += '\n' - } - } - output += ' \n' - - output += '
${column}
${name}${item.channels}${item.epg}${item.status}
' - - return output -} - markdown.compile = function (filepath) { markdownInclude.compileFiles(file.resolve(filepath)) }