Ivan Asmer 4 éve
szülő
commit
fc1d02e0dd
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      index.mjs

+ 1 - 1
index.mjs

@@ -636,7 +636,7 @@ const A = ({react:React, children, title}) =>{
 
 const Img = ({react:React, children, title, node}) =>{
     const _ = React.createElement.bind(React)
-    return _("img", {alt: title, src: children, className: node.startMatch[1]})
+    return _("img", {alt: title, src: children, className: node.startMatch[1] || undefined})
 }
 
 const defaultMapMDToComponents = {