Koen
July 28, 2023, 8:16am
1
Steps to reproduce
Create YAML frontmatter with an embedded image like this:
---
cover: "![[Pasted image 20220314153210.png|200]]"
---
Expected result
I would expect that the image is parsed in the reading view
Actual result
Environment
SYSTEM INFO:
Obsidian version: v1.4.1
Installer version: v1.3.5
Operating system: Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 22.6.0
Login status: logged in
Catalyst license: insider
Insider build toggle: on
Live preview: on
Legacy editor: off
Base theme: light
Community theme: Minimal v7.0.7
Snippets enabled: 7
Restricted mode: off
Plugins installed: 31
Plugins enabled: 31
1: Calendar v1.5.10
2: Dataview v0.5.56
3: Note Refactor v1.7.1
4: Outliner v4.7.1
5: QuickAdd v1.2.1
6: Templater v1.16.0
7: Tracker v1.10.9
8: Advanced Tables v0.19.1
9: Sortable v0.3.1
10: Kanban v1.5.3
11: Style Settings v1.0.6
12: MetaEdit v1.8.0
13: Periodic Notes v0.0.17
14: Paste URL into selection v1.7.0
15: Carry-Forward v1.4.5
16: Tag Wrangler v0.5.11
17: Natural Language Dates v0.6.1
18: Metadata Menu v0.5.1
19: Obsidian42 - Strange New Worlds (SNW) v1.2.2
20: Commander v0.5.0
21: Plugin Update Tracker v1.5.1
22: Workspaces Plus v0.3.3
23: Text Generator v0.3.20
24: PodNotes v2.10.7
25: Contextual Typography v2.2.5
26: Longform v2.0.3
27: Remember cursor position v1.0.7
28: Importer v1.0.3
29: Excalidraw v1.9.12
30: Supercharged Links v0.10.0
31: ExcaliBrain v0.2.2
Additional information
echej
July 28, 2023, 9:46am
2
The latest Minimal theme version is 7.1.1, maybe updating helps, as this is theme that might provide cover for notes not vanilla Obsidian I think
(I didnt used rendering cover images but did it worked before 1.4? Did it work in sandbox vault?
Koen
July 28, 2023, 10:04am
3
I’ve tested this in the sandbox vault, so the theme is not of any influence here.
Before I used inline fields like:
cover:: ![[Pasted image 20220314153210.png|200]]
That still works, but now that we have version 1.4 I’d like to migrate my inline fields to YAML frontmatter.
echej
July 28, 2023, 10:21am
4
wikilinks and images aren’t parsed in yaml (wikilinks might be clicable now but as far I know you don’t get an embedded preview of them), and the cover/banner image functionality was provided by custom css or plugins/themes not by vanilla Obsidian, for example here
Huh, odd! I use the Minimal theme primarily, but it works in every theme I’ve tried (including the default one). I also tried the Sandbox vault and it works there. Maybe I changed something else that I’m forgetting. Here’s the full file that I’m using:
:root {
--banner-image-height: 120px;
}
.banner-image > .markdown-preview-section {
margin-top: var(--banner-image-height) !important;
}
.banner-image.markdown-preview-view [data-callout="banner-image"],
.banner-image.markdown-preview-…
(but I might missed something)
On my Obsidian
cover:: ![[example_image.png|200]]
just display image, the same way as
![[example_image.png|200]]
I would say what you requesting is a new feature, not a bug, but devs or others might comment on it (there is no property type “image” that will be be rendered as I read in the release notes)
This is not a bug. We do not support embedding wilkins in the properties/YAML.
That syntax is something specific made up by banner plugin.
1 Like
system
Closed
August 4, 2023, 10:36am
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.