Skip to content

#582: Fix Markdown importer dropping items after a code block following a title - #583

Open
koppor wants to merge 1 commit into
itsallcode:mainfrom
koppor:bugfix/582_code_block_after_section_title
Open

#582: Fix Markdown importer dropping items after a code block following a title#583
koppor wants to merge 1 commit into
itsallcode:mainfrom
koppor:bugfix/582_code_block_after_section_title

Conversation

@koppor

@koppor koppor commented Aug 31, 2026

Copy link
Copy Markdown

Fixes #582: a fenced code block whose opening fence directly follows a section title made the importer silently drop every specification item after the block, because the TITLE state had no CODE_BEGIN transition and the closing fence then opened a phantom code block. This adds the missing TITLE → CODE_BLOCK transition, a regression test (verified to fail without the fix), and a changelog entry.

AI assistance note: analysis, fix, and test were written with Claude Code and reviewed by me; mvn -T 1C verify (incl. self-trace) passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_014Hgw7DCVCJ6hEmxYz5cU8K

… following a title

The TITLE parser state had no transition for an opening code fence, so the
fence fell through to EVERYTHING and the closing fence then opened a phantom
code block that swallowed the rest of the file.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014Hgw7DCVCJ6hEmxYz5cU8K
@koppor

koppor commented Aug 31, 2026

Copy link
Copy Markdown
Author

Fix seems to be straight-forward. Would really help us while using OFT.

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

Labels

None yet

Projects

Status: 📫 Backlog

Development

Successfully merging this pull request may close these issues.

Markdown importer silently drops all requirements after a fenced code block that directly follows a heading

1 participant