diff --git a/src/index.ts b/src/index.ts index 1da67e5..9260d79 100644 --- a/src/index.ts +++ b/src/index.ts @@ -58,13 +58,6 @@ async function createTable() { input.addEventListener('change', handleUpload); /* TODO -// Format the HTML nicely and output to a pre code block -function displayMarkup() { - const tableCode = document.querySelector('table')!.outerHTML; - const markup = document.getElementById('markup') as HTMLElement; - markup.innerText = beautify(tableCode); -} - // Create a JSON object for Contentful function makeJSON(csvString: string) { csv({ diff --git a/src/utils.ts b/src/utils.ts index e7b17e5..7ec114d 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -8,12 +8,6 @@ export async function printHTMLtable( codeBlock.innerText = prettify(table.outerHTML); } -// no longer needed -// export function isJunk(element: Part): boolean { -// // Returns true if element is in the rejected list -// return rejectedParts.includes(element.Part); -// } - // TODO /*