Front matter metadata nested fields are no longer visible in preview mode

Steps to reproduce

Disable all community plugins, set theme to the “Default” one

Enable “Show frontmatter” under “Editor” section of settings.

In source mode, create markdown file like this one (note 2 levels of publications field):

---
nice_title: "A Beautiful Art Piece"
publications:
  twitter: https://google.com
  instagram: https://google.com
---

# Art Piece

some content

Switch to preview mode.

Now, only nice_title from front matter is shown, and publications are not.

Front matter is “nicely” formatted as well, making it more difficult to read (on bigger front matters with more data)

Expected result

To have it rendered as before Obsidian 1.0 (if I remember correctly 1.0 introduced this breaking change, but I am not sure).

Meaning: all front matter fields are visible (and links are clickable as well).

Actual result

publications 2-level “object” field is not shown

Environment

  • Operating system: macOS Ventura 13.0.1
  • Debug info:
SYSTEM INFO:
	Obsidian version: v1.1.8
	Installer version: v0.15.9
	Operating system: Darwin Kernel Version 22.1.0: Sun Oct  9 20:15:09 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T6000 22.1.0
	Login status: logged in
	Catalyst license: none
	Insider build toggle: off
	Live preview: off
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 1
	Restricted mode: off
	Plugins installed: 21
	Plugins enabled: 0

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.

Additional information

source mode vs preview mode on a more complex case (my real note)

This change in design perhaps?

Obsidian Release v1.1.3 (Insider build) - Announcements - Obsidian Forum

  • The frontmatter YAML will now always be hidden in reading mode. The “Show frontmatter” toggle now toggles the metadata section.

(I don’t understand the distinction here between metadata and YAML.)

There are ongoing changes to frontmatter, so I am not gonna take this as a bug.

I guess this change is related even though it is not exactly about what I am writing about. I mean, this change indicates a bigger change in how frontmatter works for preview mode. But in this specific case: I have “Show frontmatter” enabled (as stated in my post), while my issues is about some fields (“object” ones, I suppose) not being visible when the frontmatter is visible in general

1 Like

I could argue those changes are… breaking changes :smile:

The show frontmatter as code was removed (which was you were seeing before).
A new frontmatter display is being implemented for both editor and reader. There will be changes, including breaking ones.

Until it is flushed out, I am not gonna take bug reports or feature reports about it. Sorry!