bugfix, closes #59
This commit is contained in:
parent
6eec0feb72
commit
704bc41b59
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user