Ivan Asmer 4 yıl önce
ebeveyn
işleme
fc1d02e0dd
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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 Img = ({react:React, children, title, node}) =>{
     const _ = React.createElement.bind(React)
     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 = {
 const defaultMapMDToComponents = {