fix: use non-strict comparison with `null`

pull/685/head
Divyansh Singh 3 years ago committed by GitHub
parent 9a1e9a4cf2
commit 2d9e3dadf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -11,7 +11,7 @@ export const imagePlugin = (md: MarkdownIt) => {
token.attrSet('src', './' + url)
}
if (token.attrIndex('alt') && token.children !== null) {
if (token.attrIndex('alt') && token.children != null) {
token.attrs![token.attrIndex('alt')][1] = self.renderInlineAsText(
token.children,
options,

Loading…
Cancel
Save