Embedding heading / block reference: CSSClass in YAML ignored

Steps to reproduce

  1. Create note with CSSClass in YAML frontmatter
  2. Create the referenced CSSClass in snippets folder.
.Gesetz {
      font-family: "Latin Modern Roman" !important;
       }
  1. Embed block from the created note in a new note

Expected result

See block formatted in different font. This works when embedding the entire note.

Actual result

Embedded block reference is shown in default CSS:

Bildschirmfoto 2021-04-28 um 11.57.58

Environment

  • Operating system: MacOS 11.3
  • Obsidian version: 0.11.13

Additional information

I don’t consider this a bug. Open a feature request.

1 Like