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

codeblock with "=" causes a PARSING FAILED #2292

Open
baddate opened this issue Apr 3, 2024 · 2 comments
Open

codeblock with "=" causes a PARSING FAILED #2292

baddate opened this issue Apr 3, 2024 · 2 comments
Labels
bug Something isn't working.

Comments

@baddate
Copy link

baddate commented Apr 3, 2024

What happened?

typing "=" in a md file causes a parsing error:

source
image

result:
image

reproduce:

  1. type `=` in anywhere

DQL

No response

JS

No response

Dataview Version

0.5.66

Obsidian Version

1.5.12

OS

Windows

@baddate baddate added the bug Something isn't working. label Apr 3, 2024
@fcalazans
Copy link

fcalazans commented Apr 6, 2024

Would any fix be available to skip '=' if the code starts with an equal sign?

@holroy
Copy link
Contributor

holroy commented Apr 9, 2024

The sequence of `= is the default way to start inline query, so you could change the prefix in Settings > Dataview > Inline Query Prefix.

Another option is to use <code>=</code> to display the equal sign as just the equal sign in a monospaced font. Yet another option is to insert another character in between the first backtick and the equal sign. If you can live with that, one option could be ` =`, another variant could be to insert a zero-width space at the same position.

I'm not sure on the exact details, but I do believe it's hard for Dataview to have this as a prefix and still be able to display only the equal sign if no other text is present.

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

3 participants