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
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHkAAABdCAYAAACBx8lpAAAAAXNSR0IArs4c6QAAAAlwSFlzAAAOx" alt="A close up of a sign
Description automatically generated">
generates

My solution is unable to parse this to an image so I modified the rule to this
turndownService.addRule('image', {
filter: 'img',
replacement: function (content, node) {
var alt = node.alt || ''
// Added row to remove linebreaks in alt
alt = alt.substring(0, alt.indexOf('\n'))
var src = node.getAttribute('src') || ''
var title = node.title || ''
var titlePart = title ? ' "' + title + '"' : ''
return src ? '![' + alt + ']' + '(' + src + titlePart + ')' : ''
}
})
The text was updated successfully, but these errors were encountered:
generates
My solution is unable to parse this to an image so I modified the rule to this
The text was updated successfully, but these errors were encountered: