fix(cli): keep snake_case underscores intact in strip markdown mode

This commit is contained in:
IAvecilla 2026-04-21 15:32:59 -03:00
parent b2111a2b45
commit aa61831a14
No known key found for this signature in database
4 changed files with 36 additions and 5 deletions

View file

@ -97,4 +97,12 @@ describe('estimateRows', () => {
expect(estimateRows(md, 40)).toBe(2)
})
it('keeps intraword underscores when sizing snake_case identifiers', () => {
const w = 80
const snake = 'look at recover_with_credential_pool now'
const plain = 'look at recover with credential pool now'
expect(estimateRows(snake, w)).toBe(estimateRows(plain, w))
})
})