san-md-loader
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "san-md-loader", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "💥Convert markdown file to SAN component.", | ||
@@ -5,0 +5,0 @@ "main": "dist/san-md-loader.js", |
@@ -33,3 +33,8 @@ import markdown from 'markdown-it'; | ||
const {components, content, requires} = this.getSanComponent(source); | ||
const { | ||
components, | ||
content, | ||
requires, | ||
sanBlock | ||
} = this.getSanComponent(source); | ||
@@ -53,3 +58,3 @@ const md = markdown(this.options.preset, this.options); | ||
const rawChildren = components.map((item) => JSON.stringify(item) | ||
const rawChildren = sanBlock.map((item) => JSON.stringify(item) | ||
.replace(/\u2028/g, '\\u2028') | ||
@@ -134,3 +139,8 @@ .replace(/\u2029/g, '\\u2029')); | ||
return {components, content, requires}; | ||
return { | ||
components, | ||
content, | ||
requires, | ||
sanBlock | ||
}; | ||
} | ||
@@ -137,0 +147,0 @@ |
18180
401