Whitespace after metadata delimiter affects content

Steps to reproduce

  1. Write a metadata YAML section at the top of a file, e.g.
---
tags: ...
---
  1. Add spaces after the trailing dashes, e.g. "--- "

Expected result

The rest of the content parsed normally

Actual result

In edit mode markdown formats like links, code blocks, etc., appear as a part of the metadata section, but in view mode they appear correctly.

Environment

  • Operating system: Windows
  • Obsidian version: 0.12.5