shedali
10/21/2018 - 5:38 PM

parse body of blog content with remark

parse body of blog content with remark

{
                      remark()
                        .data({
                          settings: {
                            commonmark: true,
                            emphasis: "*",
                            strong: "*",
                            footnotes: true,
                            gfm: true,
                            position: false
                          }
                        })
                        .use(reactRenderer)
                        .processSync(post.body).contents
                    }