Commit 69c833a059339473969a2e3d35c5f42e4a93bbfd
Fix image rendering
cel committed on 5/4/2017, 7:03:47 PMParent: e777f7293ea8d8d076203d8281a31daa3a084a8c
Files changed
lib/render.js | changed |
lib/render.js | |||
---|---|---|---|
@@ -23,9 +23,9 @@ | |||
23 | 23 … | return this.render.toUrl(href) | |
24 | 24 … | } | |
25 | 25 … | ||
26 | 26 … | MdRenderer.prototype.image = function (ref, title, text) { | |
27 | - var href = this.render.imageUrl(href) | ||
27 … | + var href = this.render.imageUrl(ref) | ||
28 | 28 … | var name = text || title | |
29 | 29 … | if (name) href += '?name=' + encodeURIComponent(name) | |
30 | 30 … | return h('img', { | |
31 | 31 … | src: href, |
Built with git-ssb-web