strapi-markdown-parser
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -63,4 +63,5 @@ const { flatten, unflatten } = require('safe-flat') | ||
md = data => { | ||
md = async data => { | ||
try { | ||
data = await data | ||
if (Array.isArray(data)) { | ||
@@ -67,0 +68,0 @@ return Promise.all(data.map(obj => this.parse(obj))) |
{ | ||
"name": "strapi-markdown-parser", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Strapi controller module to parse Markdown to HTML", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
176
9393
7