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

Bug: Source and Preview Modes #198

Open
nenv opened this issue Nov 27, 2023 · 6 comments
Open

Bug: Source and Preview Modes #198

nenv opened this issue Nov 27, 2023 · 6 comments
Assignees
Labels
bug Something isn't working High Priority High Priority issues needs repro Needs reproduction reading mode Relevant to Obsidian reading mode

Comments

@nenv
Copy link

nenv commented Nov 27, 2023

When using the Read mode with the default theme, the icons do not work, and neither does the title or code highlighting. To make it work, you should go to the Editor settings and enable the 'Preview' option instead of the 'Source' mode.

I usually use Obsidian in 'Source' mode to view the Markdown syntax. Because of this, the feature doesn't work for me. The main issue is that it is using the preview mode to load both the icon, title, and code highlighting.

With the default theme, I managed to make the icon and title work, but only partially. I'm not sure why not all codes are working, but I have attached images for reference.

image

At the top, you can see that some icons appear to have executed, but at the bottom, it's clear that they didn't. Both have the same syntax, so in both cases, the icons should be visible. I'm in the preview mode, in the read mode.

image

The following image shows how in preview mode, not in read mode, it's possible to see the icon and the title within code blocks correctly. This implies that there is an issue in read mode since it's not representing them correctly. It's also noticeable that in read mode, I can't see the line code highlighting, which is visible in the preview mode.

image

Here, I'm showcasing the preview mode configuration. My interface is in Spanish, but I believe it's understandable with the marks I've made. I'm referring to the option we need to activate. I'll attach an image that demonstrates how the plugin looks when that option isn't enabled.

image

image

image

All these tests were done in a completely new vault. However, there's an additional issue that I noticed in my main vault. When using the Solarized theme, icons, code highlighting, and titles are not visible in the read view, no matter what you do. In this case, it's mandatory to use the preview mode instead of the source mode when using the Solarized theme.

image

image

image

image

image

image

@nenv nenv added the bug Something isn't working label Nov 27, 2023
@nenv nenv changed the title Bug: Bug: Source and Preview Modes Nov 27, 2023
@mayurankv
Copy link
Owner

Hi, thanks for the report. I'll have a look into it and see what I find!

@mayurankv mayurankv added reading mode Relevant to Obsidian reading mode needs repro Needs reproduction High Priority High Priority issues labels Nov 27, 2023
Copy link

This issue is stale because it has been open 60 days with no activity.

@github-actions github-actions bot added the Stale label Jan 27, 2024
@mayurankv mayurankv removed the Stale label Feb 12, 2024
@mayurankv
Copy link
Owner

Sorry I haven't had a chance to look at this yet but it hasn't been forgotten. Currently doing a quick run through of all the issues so I can see what needs doing.

@mayurankv
Copy link
Owner

Ok, so this is weird, I did some cursory testing and it seems that if I'm using the editor in source mode, my reading mode works fine with both themes. Could you provide me with some code which breaks this? (i.e. in a code block or a file)

I'm not sure whether there could be some plugin conflict or something but you said you could reproduce in a new vault. The other thing could be language issues? But I have no idea how that would affect it. I'm going to wait till I have more information to do any more testing because I'm not 100% sure what is going wrong here. Look forward to your response and sorry for the delay!

Copy link

github-actions bot commented Dec 9, 2024

This issue is stale because it has been open 60 days with no activity.

@github-actions github-actions bot added the Stale label Dec 9, 2024
@mayurankv
Copy link
Owner

Is this still an issue for you?

@github-actions github-actions bot removed the Stale label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working High Priority High Priority issues needs repro Needs reproduction reading mode Relevant to Obsidian reading mode
Projects
None yet
Development

No branches or pull requests

2 participants