You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not that I suggest accept both null and undefined next to "", everywhere. It makes for more solid code. Although you’re building with mdast ingrained right now, maybe in the future you’ll allow plug-ins to manipulate the tree too, in which case they might (probably will) sometimes forget to add a property.
wooorm
changed the title
imageReference without alt is empty string instead of null
Bug: Different empty alt values for image, imageReferenceDec 7, 2015
In the below example, the image node had an `alt` property set to `null`,
whereas the reference had an `alt` set to `""`.
```md
![](/xyz.png)
![][1]
[1]: /xyz.png
```
This update ensures both have `null` as the value corresponding to an
empty `alt`.
ClosesGH-103.
using
mdast.parse()
:Yields an AST node for image with
alt
set tonull
.The same setup but using an imageReference instead:
Yields an imageReference with
alt
set to""
(empty string)The text was updated successfully, but these errors were encountered: