File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " markdown-feat-react-loader" ,
3
- "version" : " 1.0.0 " ,
3
+ "version" : " 1.0.1 " ,
4
4
"description" : " Use React Components inside markdown, import markdown as React Component" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ module.exports = function markdownFeatReact(content) {
125
125
renderer : defaultRenderer ,
126
126
} , loaderUtils . getOptions ( this ) || { } )
127
127
128
- const { renderer } = query
128
+ const { renderer, debug } = query
129
129
130
130
const ast = parser . parse ( content )
131
131
@@ -261,8 +261,14 @@ module.exports = function markdownFeatReact(content) {
261
261
)
262
262
}
263
263
`
264
+
264
265
const source = `${ header }
265
266
${ code } `;
267
+
268
+ if ( debug ) {
269
+ console . log ( debug ) ;
270
+ }
271
+
266
272
const result = repl ( source ) . code ;
267
273
268
274
return result
You can’t perform that action at this time.
0 commit comments