Skip to content

Fix multiline Setext heading breaks and underline widths - #279

Open
jackwalkerlabs wants to merge 1 commit into
matthewwithanm:developfrom
jackwalkerlabs:codex/multiline-heading-underline
Open

Fix multiline Setext heading breaks and underline widths#279
jackwalkerlabs wants to merge 1 commit into
matthewwithanm:developfrom
jackwalkerlabs:codex/multiline-heading-underline

Conversation

@jackwalkerlabs

Copy link
Copy Markdown

Preserve <br> line boundaries in level-1/2 Setext headings and size their underline to the longest text line instead of counting the whole multiline string. ATX headings and table-cell inline conversion keep their existing single-line behavior.

Fixes #225 for valid <br> markup and literal newlines. The issue’s </br> spelling is malformed HTML and remains subject to the selected BeautifulSoup parser’s handling.

Validation: the regression fails on the base; all 84 tests pass after the change. Flake8 and README reStructuredText lint pass. Cases cover both heading levels, longer first/last lines, mixed break markup, empty headings, ATX, and headings inside table cells.

AI disclosure: Implemented, reviewed, and tested by OpenAI Codex under the account owner’s authorization; no human code review is claimed.

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.

BUG - Multine title of level 1 or 2 - Wrong numbers of "decorators"

1 participant