Skip to content

Markdown Tree Parser Truncates Sections At # Comments Within Embedded Bash Code Blocks #339

@halso

Description

@halso

Describe the bug
The md-tree parser truncates section prematurely if they have code blocks in with comments starting with # because the tools thinks it has hit a Level 1 Header.

Steps to Reproduce

Run:

md-tree explode architectureBugTestVersion.md

on the following file:

architectureBugTestVersion.md

PR

If this can be fixed by the md-tree devs, that's ideal. I've raised this as a bug at:

ksylvan/markdown-tree-parser#7

Expected behavior

Expected:

architectureBugTestVersion/development-workflow.md

should contain the full "Development Workflow" section.

Actual behavior

architectureBugTestVersion/development-workflow.md

only contain the "Development Workflow" section up to the # comment in the bash code excerpt.

Here's a screenshot showing the truncated section:

Image

Additional context

This is causing the agents to get confused as they can't find sections that should be in the sharded document - for example "Code Quality and Standards" which is a subsection of the "Development Workflow" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions