HF RL Explorer

Frontmatter is incorrectly parsed when delimiter lines appear after the first frontmatter block

Frontmatter is incorrectly parsed when delimiter lines appear after the first frontmatter block: a task in LegoFlow-SWE (Harbor dataset). The same problem occurs when a frontmatter-like block appears somewhere in the middle of a document — it should not be recognized as frontmatter at all, but…

The task

The same problem occurs when a frontmatter-like block appears somewhere in the middle of a document — it should not be recognized as frontmatter at all, but currently the parser does attempt to parse it.

Part of Lego-X/LegoFlow-SWE.