fix(MD013): preserve wildcard asterisks during reflow#604
Conversation
|
Thanks for the fix — the wildcard case is real and reproduces on One concern before merging: the change patches two of three sibling sites in Could you either:
I tested Also worth noting: the fix actually addresses a broader class than wildcards specifically — any hyphen-attached emphasis-like construct. The PR title and test could mention that, but not a blocker. |
8f3abcd to
b036dd6
Compare
|
I fixed the code according to your comment, using fn should_insert_space_before_join(current: &str) -> bool. I tried to create a test case which would fail unless I added the fix on line 1477 also, but I had to give up. |
Description
Fixes MD013 semantic reflow so the emphasis sentence-split path does not insert a space after a hyphen before a literal wildcard asterisk. This preserves identifiers like
TICKET-*during reflow.The regression test and bug fix were created in cooperation with Codex.
Fixes: #597
Type of Change
Testing
make test-dev)Added regression test:
test_reflow_preserves_literal_wildcard_asterisksValidated locally:
Checklist
make fmt&&make lint)