on master help sign in
try to log errors in md parsing
commit163fe479f491109fc483ed6d3299fa2c0d6f1405 authorGavin Atkinson <gvnatknsn@protonmail.com> dateMon 13 Sep 2021, 11:34 (5 years ago) parent53129e3
1 file changed+14−1
components/Markdown.js+14−1
components/Markdown.js+14−1
@@ -43,7 +43,20 @@ export default async function Markdown({ post }) {
4343 })
4444 .use(slug)
4545 .use(heading)
46− .process(post.content);
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+ );
4760
4861 return result.toString();
4962}