There should be no whitespace after the YAML delimiter. This bug as it was first reported a year ago is fixed.
The YAML section appears marked in red in LP because there is a syntax error (the extra white space) and no properties are parsed. Since no properties are parsed, there’s no relative block to show in reading mode.