From b3499a493c49df7710b176ac941f7916ee91f6df Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Sun, 7 Jan 2024 23:07:20 -0600 Subject: [PATCH] uncomment transformer code so i can see my notes --- lib/transformer.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/lib/transformer.js b/lib/transformer.js index 0f0b52a..011309b 100644 --- a/lib/transformer.js +++ b/lib/transformer.js @@ -25,9 +25,6 @@ export class Transformer { } static getFrontMatterData = (filecontent) => { - // if (Transformer.haveFrontMatter(filecontent)) { - // return matter(filecontent).data - // } return {} } @@ -39,8 +36,6 @@ export class Transformer { } ) - // permalink = permalink.replace("ç", "c").replace("ı", "i").replace("ş", "s") - // console.log(`/note/${toSlug(result)}`) if (result === undefined || result.length === 0) { // console.log("Cannot resolve file path " + pageName) } @@ -58,8 +53,7 @@ export class Transformer { static getHtmlContent = (content) => { let htmlContent = [] const sanitizedContent = Transformer.preprocessThreeDashes(content) - htmlContent = ["
Placeholder
"] - /* + unified() .use(markdown, { gfm: true }) .use(obsidianImage) @@ -85,10 +79,12 @@ export class Transformer { htmlContent.push(String(file).replace('\n', '')) if (err !== null && err !== undefined) { console.log('CUSTOM ERROR @transformer.js:89:' + err) + } else { + return } } ) - */ + htmlContent = htmlContent.join('') htmlContent = htmlContent.split('---') return [htmlContent]