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

Parse error when I'm not using an inline field

Open smarj opened this issue 2 years ago • 2 comments

What happened?

The following literal text, which was part of a task, and not intended to be an inline field:

the `=` instead of `:` problem

Produces a parsing error:

the Dataview (inline field "): Error:
-- PARSING FAILED - - -.

Got the end of the input
Expected one of the following:
"(' 'null', boolean, date, duration, file link, list ('[1, 2, 3]'), negated field, number,
object ('{ a: 1, b: 2 }'), string, variable
or: choice

DQL

No response

JS

No response

Dataview Version

0.5.47

Obsidian Version

1.0.3

OS

MacOS

smarj avatar Nov 17 '22 15:11 smarj

Yeah regex based parsing tends to do that, I suppose. For now, you can get around it by changing the character used to prefix inline queries in the plugin settings.

AB1908 avatar Nov 18 '22 12:11 AB1908

This still occurs with '=', I get around it by using lateX $=$ for in-line rendering

KingPsychopath avatar Jan 08 '24 02:01 KingPsychopath