uncomment transformer code so i can see my notes
This commit is contained in:
parent
3e84d77d6a
commit
b3499a493c
@ -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 = ["<div>Placeholder</div>"]
|
||||
/*
|
||||
|
||||
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]
|
||||
|
Loading…
Reference in New Issue
Block a user