@@ -43,20 +43,7 @@ export default async function Markdown({ post }) {
4343 })
4444 .use(slug)
4545 .use(heading)
46− .process(post.content)
47− .then(
48− (file) => {
49− // console.error(reporter(file))
50−
51− // console.log(String(file))
52− return file.toString();
53− },
54− (error) => {
55− // Handle your error here!
56− console.log("error", error);
57− throw error;
58− }
59− );
46+ .process(post.content);
6047
6148 return result.toString();
6249}