uncomment transformer code so i can see my notes

This commit is contained in:
Triston Armstrong 2024-01-07 23:07:20 -06:00
parent 3e84d77d6a
commit b3499a493c

View File

@ -25,9 +25,6 @@ export class Transformer {
} }
static getFrontMatterData = (filecontent) => { static getFrontMatterData = (filecontent) => {
// if (Transformer.haveFrontMatter(filecontent)) {
// return matter(filecontent).data
// }
return {} 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) { if (result === undefined || result.length === 0) {
// console.log("Cannot resolve file path " + pageName) // console.log("Cannot resolve file path " + pageName)
} }
@ -58,8 +53,7 @@ export class Transformer {
static getHtmlContent = (content) => { static getHtmlContent = (content) => {
let htmlContent = [] let htmlContent = []
const sanitizedContent = Transformer.preprocessThreeDashes(content) const sanitizedContent = Transformer.preprocessThreeDashes(content)
htmlContent = ["<div>Placeholder</div>"]
/*
unified() unified()
.use(markdown, { gfm: true }) .use(markdown, { gfm: true })
.use(obsidianImage) .use(obsidianImage)
@ -85,10 +79,12 @@ export class Transformer {
htmlContent.push(String(file).replace('\n', '')) htmlContent.push(String(file).replace('\n', ''))
if (err !== null && err !== undefined) { if (err !== null && err !== undefined) {
console.log('CUSTOM ERROR @transformer.js:89:' + err) console.log('CUSTOM ERROR @transformer.js:89:' + err)
} else {
return
} }
} }
) )
*/
htmlContent = htmlContent.join('') htmlContent = htmlContent.join('')
htmlContent = htmlContent.split('---') htmlContent = htmlContent.split('---')
return [htmlContent] return [htmlContent]