Skip to content

fix: support repeated markdown headers#181

Merged
saswatamcode merged 1 commit intomainfrom
repeatedlink
Mar 18, 2026
Merged

fix: support repeated markdown headers#181
saswatamcode merged 1 commit intomainfrom
repeatedlink

Conversation

@bwplotka
Copy link
Owner

@bwplotka bwplotka commented Mar 17, 2026

@bwplotka bwplotka requested a review from saswatamcode March 17, 2026 20:28
Signed-off-by: bwplotka <bwplotka@gmail.com>
Copy link
Collaborator

@saswatamcode saswatamcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@saswatamcode saswatamcode merged commit e88e0a8 into main Mar 18, 2026
4 checks passed
if bytes.HasPrefix(b, []byte(`#`)) {
ids = append(ids, toHeaderID(b))
if !bytes.HasPrefix(line, []byte("#")) {
if err == io.EOF {
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw I used AI to simplify and I regret... Was ultra late. To improve later 🙃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants