Skip to content

Commit

Permalink
Fix markdown-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ptgott committed Jul 8, 2024
1 parent 3d40d7f commit 6426c99
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server/markdown-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ export const transformToAST = async (value: string, vfile: VFile) => {
// run() will apply plugins and return modified AST
const AST = await unified()
// Resolves (!toc dir/path!) syntax
.use(remarkTOC, {
rootDir: getVersionRootPath(vfile.path),
})
.use(remarkTOC)
.use(remarkIncludes, {
rootDir: getVersionRootPath(vfile.path),
}) // Resolves (!include.ext!) syntax
Expand Down

0 comments on commit 6426c99

Please sign in to comment.