Jacky Zhao
2023-05-31 21c007e2fcf73fe4ef04dd07db7116afed46047a
quartz/processors/parse.ts
@@ -6,7 +6,7 @@
import { ProcessedContent } from '../plugins/vfile'
import { PerfTimer } from '../perf'
import { read } from 'to-vfile'
import { pathToSlug } from '../path'
import { slugify } from '../path'
import path from 'path'
import { QuartzTransformerPlugin } from '../plugins/types'
@@ -39,7 +39,7 @@
    const file = await read(fp)
    // base data properties that plugins may use
    file.data.slug = pathToSlug(path.relative(baseDir, file.path))
    file.data.slug = slugify(path.relative(baseDir, file.path))
    file.data.filePath = fp
    const ast = processor.parse(file)