mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-05-17 16:18:43 +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();
|
||||
style ||= "height: 600px;";
|
||||
|
||||
let additionalUrlMatch = /additionalStyle:([^\n]+)/gi.exec(s);
|
||||
let additionalUrl = additionalUrlMatch && additionalUrlMatch[1].trim();
|
||||
additionalUrl ||= "";
|
||||
|
||||
let frame = new CustomFrame(this.settings, data);
|
||||
e.appendChild(frame.create(style));
|
||||
e.appendChild(frame.create(style, additionalUrl));
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue