markdown-tree-parser icon indicating copy to clipboard operation
markdown-tree-parser copied to clipboard

Extract section extracts more than 1 section

Open bmadcode opened this issue 1 year ago • 2 comments

Explode works perfectly and each level 2 goes to its own file and has only the content from that level 2.

With Extract, it sometimes takes more than just the given section and adds a few more. I have not yet explored specifically what the pattern is - but I will share the sample trivial prd I have been using as a sample for youtube videos, along with the command I used.

In the case of the following PRD - Trying to extract just section 6, created a file that had sections 6,7 and 8 (but interesting enough not the last section 9, as at first I thought it was just grabbing all content through the end).

The command run was md-tree extract docs/prd.md '6. Epic Overview' > epics.md

prd.md

bmadcode avatar May 31 '25 23:05 bmadcode

Please verify the fix in #2 and close this issue.

ksylvan avatar Jun 01 '25 01:06 ksylvan

Fixed! Thanks KS

bmadcode avatar Jun 01 '25 02:06 bmadcode