Skip to content

fix(sectionize): drop the section's own heading when rebuilding from pages - #71

Merged
Rl0007 merged 1 commit into
mainfrom
fix/rebuilt-section-title
Oct 6, 2026
Merged

Rl0007 merged 1 commit into
mainfrom
fix/rebuilt-section-title

Conversation

@Rl0007

@Rl0007 Rl0007 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor
  1. After the assistant rebuilt a section from its pages, the Wiki preview showed the section title twice: once as the title and again as the first heading of the text.
  2. A rebuilt section now drops its own heading line, the same way the first parse does, so the title shows once.

You can visit an import's Wiki tab, rebuild a section from the assistant, and open that section to see it.

Fixes #37

After

Verification
  • New test test_rebuild_drops_the_section_own_heading (test_agent_content): fails on main (body still starts with # **1. Alpha**), passes with the fix.
  • test_agent_content, test_lint, test_page_propagation: all pass.
  • Full suite on a devbox: 486 tests, 0 failures, 11 skipped (baseline 485 / 0 / 11, plus the new test).
  • Devbox e2e: rebuild_section_markdown on "What Wikify Is" started with # **What Wikify Is** on main and starts with the body text on this branch; the Wiki preview shows the title once.
  • Code review: approved. No LLM call involved.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@Rl0007
Rl0007 merged commit 167d602 into main Oct 6, 2026
3 checks passed
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.

Rebuilt section shows its title twice

1 participant