on master help sign in
unsafe-perm
commita7a1f050177bad2ded3b2d38c36c1e846b419f4f authorGavin Atkinson <gvnatknsn@protonmail.com> dateMon 13 Sep 2021, 13:11 (5 years ago) parent163fe47
2 files changed+2−14
.npmrc+1 components/Markdown.js+1−14
.npmrcnew file+1
@@ -0,0 +1 @@
1+unsafe-perm = true
components/Markdown.js+1−14
@@ -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}