Skip to content

[Bug]: MdSnippetChunker logic on Peagen is trimming README.md generations down #1589

@cobycloud

Description

@cobycloud

Describe the Bug

I noticed a lot of the README.mds were cut off, I think what's happening here is related to our chunker.

The chunker is meant to trim the explanation off the before and after of triple backticks (if present), but in the cases where there is more than one triple backtick or we want the before and after - that pattern causes issues.

Steps to Reproduce

  1. Generate a project with multiple triple backticks in the README.md

Software Version

Latest (Nightly Build)

Python Version

Python 3.12

Environment Details

No response

Relevant Logs or Error Output

Additional Context (Optional)

No response

Confirmation

  • I have searched the existing issues for this bug.
  • I have provided all necessary information to reproduce the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions