Skip to content

Throw exception when ExtractFrontMatter is called without child modules #277

Open

Description

@holly-hacker

I just spent an embarrassing amount of time debugging why my ExtractFrontMatter module wasn't working, as it wasn't outputting the new modules with the front matter removed. It turns out that I had to pass in a ParseYaml or similar module to do the actual parsing of the frontmatter, or else it will not do anything. This wasn't clear from the documentation.

I suggest throwing an exception if no child module is passed, to prevent others from wasting multiple hours pulling their hair out trying to figure out how this framework works and why it's not doing what you expect :)

Activity

  1. daveaglick commented on May 5, 2024

    @daveaglick
    Member

    Great idea! In fact, I'm going to classify this as a bug since it doesn't make any functional sense to have a module that requires child modules silently fail if no children are there.

  2. added
    ⚠️ Bug
    on May 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚠️ Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions