Skip to content

Preserve boundary line breaks around inline emphasis - #280

Open
jackwalkerlabs wants to merge 1 commit into
matthewwithanm:developfrom
jackwalkerlabs:codex/preserve-inline-line-breaks
Open

Preserve boundary line breaks around inline emphasis#280
jackwalkerlabs wants to merge 1 commit into
matthewwithanm:developfrom
jackwalkerlabs:codex/preserve-inline-line-breaks

Conversation

@jackwalkerlabs

Copy link
Copy Markdown

Preserve leading and trailing line breaks outside inline emphasis delimiters. Previously <b>foo<br/></b>bar lost the break, and backslash-style breaks could leave a stray backslash inside bold markup. Keep break-only tags and nested emphasis from dropping these separators as well.

Fixes #95.

Validation: the reported nested title example fails on the base and passes with this change. All 84 tests pass; Flake8 and README reStructuredText lint pass. New coverage includes leading/trailing and repeated breaks, both newline styles, nested tags, and break-only content.

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.

Newlines inside a title

1 participant