mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-06-08 00:53:37 +02:00
additonalUrl
This commit is contained in:
parent
d4a262d4f4
commit
01468713bd
|
@ -62,8 +62,12 @@ export default class CustomFramesPlugin extends Plugin {
|
||||||
let style = styleMatch && styleMatch[1].trim();
|
let style = styleMatch && styleMatch[1].trim();
|
||||||
style ||= "height: 600px;";
|
style ||= "height: 600px;";
|
||||||
|
|
||||||
|
let additionalUrlMatch = /additionalStyle:([^\n]+)/gi.exec(s);
|
||||||
|
let additionalUrl = additionalUrlMatch && additionalUrlMatch[1].trim();
|
||||||
|
additionalUrl ||= "";
|
||||||
|
|
||||||
let frame = new CustomFrame(this.settings, data);
|
let frame = new CustomFrame(this.settings, data);
|
||||||
e.appendChild(frame.create(style));
|
e.appendChild(frame.create(style, additionalUrl));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue