mirror of
https://github.com/Ellpeck/ObsidianCustomFrames.git
synced 2024-11-26 11:08:35 +01:00
also hide markdown frames on mobile if the setting is enabled
This commit is contained in:
parent
bd6c7b5901
commit
8199d7f67b
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ export default class CustomFramesPlugin extends Plugin {
|
||||||
e.createSpan({ text: `Couldn't find a frame with name ${frameName}` });
|
e.createSpan({ text: `Couldn't find a frame with name ${frameName}` });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (Platform.isMobileApp && data.hideOnMobile) {
|
||||||
|
e.createSpan({ text: `${frameName} is hidden on mobile` });
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let styleMatch = /style:([^\n]+)/gi.exec(s);
|
let styleMatch = /style:([^\n]+)/gi.exec(s);
|
||||||
let style = styleMatch && styleMatch[1].trim();
|
let style = styleMatch && styleMatch[1].trim();
|
||||||
|
|
Loading…
Reference in a new issue