obsidian-dataview icon indicating copy to clipboard operation
obsidian-dataview copied to clipboard

"parentheses syntax" for fields is overzealous, captures more data than intended

Open DHowett opened this issue 3 years ago • 0 comments

What happened?

I wrote the following snippet in an Obsidian document about a C++ project:

this could be a `std::vector` (or `std::wstring`).

It rendered like this:

image

I believe that this construction triggered the alternate parentheses syntax documented on the Data Annotations page.

It looks like it parsed "or `std" as a field name, and ate the final ` in the value. Given that there are formatting characters inside the field, or between the field and the value, I would not expect this.

DQL

No response

JS

No response

Dataview Version

0.5.41

Obsidian Version

0.15.9

OS

Windows

DHowett avatar Aug 23 '22 18:08 DHowett