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

Inline code snippets get rendered as code blocks #2443

Closed
joreiff opened this issue Sep 19, 2024 · 2 comments
Closed

Inline code snippets get rendered as code blocks #2443

joreiff opened this issue Sep 19, 2024 · 2 comments
Labels
bug Something isn't working.

Comments

@joreiff
Copy link

joreiff commented Sep 19, 2024

What happened?

I like to keep to a list of tasks in my notes. If these contain inline code snippets like

- [ ] A task containing some `code`.

then a TASK FROM "Folder" query renders code on its own line as if it were a code block. The issue seems to be that DataView unconditionally adds class="language-none" to all code blocks even though this should only apply to full (fenced) code blocks.

This only affects the "Reading view".

DQL

TASK FROM "Folder"

JS

No response

Dataview Version

0.5.67

Obsidian Version

1.6.7

OS

Windows

@joreiff joreiff added the bug Something isn't working. label Sep 19, 2024
@holroy
Copy link
Contributor

holroy commented Dec 28, 2024

I can't reproduce this bug in neither 1.6.3 nor 1.7.7. Can you provide more details?

@joreiff
Copy link
Author

joreiff commented Jan 13, 2025

Sorry for the late reply! I just tried it again. I still had one tab open that exhibited this behavior, but after closing and re-opening it, the issue seems to be gone. Maybe it was already fixed by some update and just a kind of caching issue? I will close this issue for now and will reopen it if I can reproduce it again in the future. Thanks for your work!

@joreiff joreiff closed this as completed Jan 13, 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.
Projects
None yet
Development

No branches or pull requests

2 participants