-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display Banners in Live Preview #19
Comments
Just found this plugin, this would be a great feature to have. |
Love this plugin 💖and looking forward to seeing this in action in live preview mode. Thanks. |
Hey there! Pardon the late check on this, but I wanna say that this is like high priority on the roadmap, & I'm currently looking into it (it's just been a challenge to figure out how CM6 Extensions as a whole personally, ahah). There's a release later coming today that doesn't include this, 'cause I wanted to get through some older issues/suggestions first, but this is being worked on (or rather, being figured out. If anyone has references of other plugins that uses this type of stuff, feel free to throw me any, haha) |
Hi @noatpad, thanks for the update! Unfortunately I haven't got any programming background and haven't ever stepped into the obsidian plugin developer discord channel, so I can't contribute any knowledge here. Best best best of luck! |
I'm using this with a few plugins - specifically Folder Note and Admonitions come to mind. Both of those plugins use codeblocks to generate their features, which I believe would then be passed to Obsidian itself for Live Preview. So I doubt that helps much, but it's what I could think of. |
@noatpad i think nothingislost from discord can help you since he has banners working with codemirroroptions. after you figure how he did it then you can make it work with cm6 for livepreview |
If I can chime in, I would definitely like to see this working in LP too :) |
I just found this plugin today, and I'm now super excited to see it working in live preview 🙂 Thanks for all your hard work! ❤️ |
+1 for making this available in live preview |
Awesome, really excited to see banners in live preview. Testament to how great the plugin is that I've been hungering so much for it to work in editing mode! |
Preliminary support's up and ready to go! Pardon me that this took way longer than I'd like to admit, ahah. |
@noatpad thank you so much! It looks great! Thanks again 👌💪👊
Edit: With some help from discord, I was able to get a much cleaner appearance with live preview. I discovered you can hide/disable the YAML frontmatter in live preview with the following snippet and by using a hotkey set up with the Snippets Command plugin to quickly switch the YAML on/off.
|
This is fantastic -- thank you so much for your hard work!!! |
Hi @noatpad, I had a few style problems that I wanted to iron out so the Banners looked nicer, and I think I have good functional solutions for each of them. Could I ask you to have a quick look at the code below and make sure it's OK? Thanks! Before (problems):
After (looking good!):
thoughts and questions
the snippets
edit: added |
@DryIce1 , how do you edit your YAML frontmatter if it's set to display: none? |
Hi @megclaypool, good question! Snippets Commands plugin to assign hotkey and hide/reveal YAML. I've edited my post above to include this step, thanks. |
What
No rush! But thanks for your awesome plugin!
The text was updated successfully, but these errors were encountered: