Skip to content
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

Code block not working in new live preview mode. #44

Closed
ParkerFoo opened this issue Dec 25, 2021 · 7 comments
Closed

Code block not working in new live preview mode. #44

ParkerFoo opened this issue Dec 25, 2021 · 7 comments

Comments

@ParkerFoo
Copy link

Hi there, thank you for making this theme.

Code block does not seem to work in live preview mode.
The code block will not show up in live preview mode.

Kindly refer the screenshot below:
image

@plutonium-239
Copy link

facing the same problem, it is because of the theme

@eMe-404
Copy link

eMe-404 commented Jan 16, 2022

really like this theme but still encountering the same issue with preview mode, is there any update for this?

@JustinB555
Copy link

Just wanted to add to this.

I did some digging into the Obsidianite.css file using the dev tools (ctrl+shift+i) and found where the visual problem was. Now, I'm NOT saying that this is the permanent fix (as I haven't fully read or tested if modifying this one part breaks anything else); but changing either the position, width, height, or disabling the background color seemed to fix it. I changed the position from absolute to relative. Now I can read my code while using the live preview feature.

I will warn again that this was a quick fix and not fully tested for other issues.

Obsidianite Code Block Quick Fix

@JustinB555
Copy link

I will add to my previous note:

Obsidian seems to really like to hold onto old .css data. I'm not 100% certain how I did it, but hard resetting it seemed to get it to take the updated .css file.

  • Steps I did by accident:
  • Go to clear the cache data.
  • Realized that I misspelled 'Obsidian' for the folder I hold all my obsidian vaults.
  • Renamed it so that it is spelled correctly.
  • Relaunched Obsidian and boom, all of a sudden it is working.

I don't know how I blundered into getting it to work, but it is now. I'll keep updating if anything changes.

@plutonium-239
Copy link

Just changing the Obsidianite.css in your (vault folder) > .obsidian > themes folder works, no need to do anything else.

@bennyxguo
Copy link
Owner

Hey all, I will provide full support for live preview mode this weekend. If not latest next weekend! Thanks for all your supports!

@HoWol76
Copy link

HoWol76 commented Mar 2, 2022

This seems to still be an issue with the non-legacy editor. Switching to legacy mode also solves the issue. -- for a given value of "solves"

bennyxguo pushed a commit that referenced this issue Oct 9, 2022
### New Diamonds 💎

- Removed all the old `Cluster Free` code (please move to `live preview` mode)
- Added support for `live preview` mode [#44]
  - Supporting all the features that is there fore for live preview

### Fixes

- Problem with code block should no longer exist with `live preview` [#52]
- Images now align to left, fixed issue with image having no spaces between list items [#50][#34]
- Fixed issue with strange block that hides top of the page in edit mode with `live preview` [#47]
- Fixed bullet point not visible in view mode [#45]
- Fixed bullet lists in edit mode not compatible with different fonts [#32]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants