The closing --- was matched after trimming spaces, so an indented line, which is YAML content, closed the frontmatter. It now has to be exactly ---, like the opening one; a CRLF ending is still fine.