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

Open
joreiff opened this issue Sep 19, 2024 · 0 comments
Open

Inline code snippets get rendered as code blocks #2443

joreiff opened this issue Sep 19, 2024 · 0 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
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

1 participant