blacksmithgu / obsidian-dataview

A data index and query language over Markdown files, for https://obsidian.md/.
https://blacksmithgu.github.io/obsidian-dataview/
MIT License
7.03k stars 413 forks source link

Bug report: Inline Field Highlighting breaks rendering on nearby lines #740

Open SlRvb opened 2 years ago

SlRvb commented 2 years ago

What happened?

When using the inline highlighting, if there's no empty line between the next thing, it causes embeds and inline queries to not render: ![[Embeds]] and = this.fieldName

Regular markdown syntax for text works fine around it, but the rest don't.


After, Before, and Image do not render the dataview query or embed, but Spaced does:

Obsidian_DXQWy71RdA

DQL

(Lines:: After)
` = this.Lines`

` = this.Lines`
[Lines:: Before]

(Lines:: Spaced)

`= this.Lines`

[Lines:: Testing]

(Lines:: Image)
![[Image.png]]

Testing Regular Text
` = this.Lines`

JS

No response

Dataview Version

0.4.21

Obsidian Version

0.13.16

OS

Windows

s-blu commented 1 year ago

Hello, thanks for the good reproduction! Just for documentation purposes: This is still reproducible with 0.5.47 and obsidian 1.1.8, both in LP and Read View.