We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6b121f commit 138c198Copy full SHA for 138c198
src/js/easymde.js
@@ -2251,7 +2251,7 @@ EasyMDE.prototype.render = function (el) {
2251
return;
2252
}
2253
if (!parentEl.hasAttribute('data-img-src')) {
2254
- var srcAttr = parentEl.innerText.match('\\((.*)\\)'); // might require better parsing according to markdown spec
+ var srcAttr = parentEl.innerText.match(/!\[.*?\]\((.*?)\)/); // might require better parsing according to markdown spec
2255
if (!window.EMDEimagesCache) {
2256
window.EMDEimagesCache = {};
2257
0 commit comments