some changes
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-02-10 17:06:51 +01:00
parent f884ac1d1d
commit f7c6d3ae16
8 changed files with 756 additions and 45 deletions

View File

@@ -6,6 +6,7 @@ import { remark } from "remark";
import html from "remark-html";
import remarkGfm from "remark-gfm";
export const BLOGS_PATH = join(process.cwd(), "content/blogs");
export const PROJECTS_PATH = join(process.cwd(), "content/projects");
export interface Post {
@@ -58,7 +59,7 @@ export const getAllProjectsFrontMatter = (): Post[] => {
};
export async function markdownToHtml(markdown: any) {
const result = await remark().use(html).use(remarkGfm).process(markdown);
const result = await remark().use(html).process(markdown);
return result.toString();
}