-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Bug: Nested Codeblocks #92
Comments
Thanks for the bug report, will look into it. |
Hey I can't reproduce this unfortunately. I actually need to fix a non-trivial problem before the next release so I don't know whether something small I've changed between releases could have fixed this but I doubt it. Does this issue still occur in a new vault? |
So, this is a rather odd bug. The day I reported it, it lasted the entire day. I actually had to cease working on what I was doing in regards to needing nested codeblocks because it refused to work. I went back today to work on it again, and the code was there. I've tried to break it every which way I can and it appears to be working properly. The only thing I can equate it to is possibly another plugin was conflicting with it somehow. The bad issue with that, is I legit change plugins every single day. I install a few new ones, and remove a few I no longer need. At the time of writing this, I currently have 89 plugins installed. So I'm going to have to do a vault backup, and then go back through the list and see if I can somehow at least narrow down where it was coming from. But I know it was an issue because I spent a good hour trying to figure out why the text was disappearing, even going as far to use the developer console and see if it was at least being inserted, or if it was just marked with something like |
Ok that is very weird. I'm trying to do a quick refactor with the next version to make things slightly less buggy. This could also be related to #91 though in that case the reading mode was kind of being ignored. I have come across cases where this weird behaviour happens but I'm actually unaware of it still being an issue. Though despite all that, as I said I hope to change some stuff to make it less buggy soon. If you do get a chance and narrow down a plugin conflict or something, that would be super helpful! |
Sorry, missed this. I'll poke a look at it tomorrow and see if I can narrow it. This isn't a huge deal, the bigger issue is the shifting text. That bug is so annoying right now. |
Yep that will definitely be my number 1 priority. |
Thanks. I would be the happiest person in the world. I use Obsidian and your plugin religiously, and I have a lot of codeblocks from all my development work. Right now as soon as I scroll down in a code block, all the text runs of the screen. Feel like I'm playing pacman and seeing if I can hurry up and copy the code before it runs away. Then I have to leave the doc and come back to get it fixed lol |
Just trying to clean up your workload. Not sure if it was accidentally fixed in your last update since I first reported this, but nested codeblocks are working fine. I tried creating blocks with titles, highlights, etc. From what I'm seeing, they all work properly. Used the same exact codeblock I reported last time. |
Ah that's amazing to hear! Thanks for letting me know. I'll close this for now but do let me know if it starts playing up at any point. |
Describe the bug
When attempting to nest codeblocks, editing mode displays the codeblock correctly. However, Live mode displays a blank codeblock.
Steps to reproduce
In the example below, I keep examples for the dataview plugin in a document. The outer codeblock formats as markdown using an extra tick. Then the inner code is the actual dataview code.
Expected behaviour
Nested codeblocks should appear the same in Edit and Live modes.
Current behaviour
Edit Mode works properly and displays the nested codeblocks
Live Mode displays a blank codeblock
Environment
Screenshots
Edit Mode
Live Mode
Additional context
Once this plugin is disabled, nested codeblocks function properly in edit and live modes.
The text was updated successfully, but these errors were encountered: