Skip to content

fix(org,rst): keep item tags and directive titles whole - #507

Merged
HaoZeke merged 10 commits into
mainfrom
fix/org-rst-titles
Sep 26, 2026
Merged

HaoZeke merged 10 commits into
mainfrom
fix/org-rst-titles

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Sep 26, 2026

Copy link
Copy Markdown
Collaborator

An Org item tag before :: was reflowed as prose.

The tag now stays on the item line. The description after it still splits.

A same-line title on admonition, rubric, topic, sidebar, list-table, and contents was reflowed as prose.

That title now stays on the directive line. The body under the directive still splits.

note and warning same-line bodies still split.

An item tag before " :: " stays with the bullet. The description after the separator still reflows.
admonition, rubric, topic, sidebar, list-table, and contents titles stay on the opener. Body prose under the directive still reflows, and note and warning same-line bodies still split.
A description on the line after an item tag stays prose and still
splits. An indented directive title stays structure until the blank
line, and the body after that blank still splits.
Org item tags run to the last " :: " on the line. An earlier
separator stays in the tag, and the description after the last one
still splits.
The SnapperCheck continuation lines up under "- =SnapperCheck= :: ".
The conventional-commit tags in the contributing guide already match.
The item-tag predicate and two test inputs were over the width.
That line is the body. It splits. Treating it as more title kept
"Body here. Second body." on one line.
rustfmt fits that string on the assignment line.
@HaoZeke
HaoZeke merged commit 00dea41 into main Sep 26, 2026
24 checks passed
@HaoZeke
HaoZeke deleted the fix/org-rst-titles branch September 26, 2026 11:14
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.

1 participant