Skip to content

Commit

Permalink
Merge branch 'main' into 625-add-user-config-type
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedsalem401 authored Feb 16, 2024
2 parents bf65c12 + 5802fa8 commit a62f3b0
Show file tree
Hide file tree
Showing 4 changed files with 732 additions and 23 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ out/
.obsidian/
.markdowndb/
tsconfig.tsbuildinfo
.vscode/
.idea/
3 changes: 3 additions & 0 deletions lib/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ import siteConfig from "@/config/siteConfig";
* @returns: { mdxSource: mdxSource, frontMatter: ...}
*/
const parse = async function (source, format, scope) {
if (siteConfig.preProcess) {
source = siteConfig.preProcess(source);
}
const { content, data } = matter(source);
const permalinks = await getPermalinks(siteConfig.content);

Expand Down
Loading

0 comments on commit a62f3b0

Please sign in to comment.