bugfix, closes #59

This commit is contained in:
Cássio Zen 2016-08-29 17:26:47 -03:00
parent 6eec0feb72
commit 704bc41b59

View File

@ -82,7 +82,7 @@ function processMediaProxyPlugins(getMedia) {
const mediaProxyMarkdownRule = mediaProxyRule.toText((state, token) => {
var data = token.getData();
var alt = data.get('alt', '');
var src = getMedia(data.get('src', ''));
var src = data.get('src', '');
var title = data.get('title', '');
if (title) {
@ -95,7 +95,7 @@ function processMediaProxyPlugins(getMedia) {
var data = token.getData();
var alt = data.get('alt', '');
var src = data.get('src', '');
return `<img src=${src} alt=${alt} />`;
return `<img src=${getMedia(src)} alt=${alt} />`;
});
nodes['mediaproxy'] = (props) => {