Skip to content

Add MarkdownTextSplitter #1

Closed

Description

@AmitoVrito

Description

Add a MarkdownTextSplitter that splits text at markdown heading boundaries (#, ##, ###, etc.) before falling back to paragraph/sentence splits.

Details

  • Add src/synapsekit/text_splitters/markdown.py
  • Inherit from BaseSplitter
  • Split on headings first, then fall back to \n\n for chunks that exceed chunk_size
  • Support chunk_overlap like other splitters
  • Export from src/synapsekit/text_splitters/__init__.py
  • Add tests in tests/text_splitters/test_splitters.py

Reference

Look at src/synapsekit/text_splitters/character.py and recursive.py for patterns to follow.

Activity

  1. added
    enhancement
    good first issue
    on Mar 12, 2026
  2. zeel2104 commented on Mar 12, 2026

    @zeel2104

    I would like to work on this issue. Can you please assign it to me?

  3. AmitoVrito commented on Mar 12, 2026

    @AmitoVrito
    CollaboratorAuthor

    Thanks for your interest! I will assign it to you. Before you start, could you give the repo a ⭐? It really helps with visibility for a new project. Looking forward to your PR!

  4. added 2 commits that reference this issue on Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issue

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions