File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,12 @@ module.exports = async (htmlInput, handlers) => {
1818 . use ( rehype2remark , { handlers : { ...handlers } } )
1919 . use ( stringify ) ;
2020
21- const markdown = processor . processSync ( htmlInput ) ;
21+ // const markdown = processor.processSync(htmlInput);
2222 let compiledMarkdown ;
2323
2424 //if not a valid markdown, we send empty div to convert into markdown
2525 try {
26+ const markdown = processor . processSync ( htmlInput ) ;
2627 compiledMarkdown = await mdx ( markdown ) ;
2728 } catch ( error ) {
2829 compiledMarkdown = await mdx ( `<div></div>` ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " @draftbox-co/html-to-compiled-mdx" ,
33 "description" : " Utility to convert HTML to compiled MDX, for consumption in MDX renderer." ,
4- "version" : " 1.0.3 " ,
4+ "version" : " 1.0.4 " ,
55 "main" : " index.js" ,
66 "license" : " MIT" ,
77 "dependencies" : {
You can’t perform that action at this time.
0 commit comments