mirror of
https://github.com/pbakaus/impeccable.git
synced 2026-09-18 17:16:46 +03:00
Fix wrapped design characteristics
Join indented Markdown bullet continuations and keep them out of Overview philosophy text. AI assistance: Codex reproduced the issue, implemented the fix, and added regression coverage under maintainer authorization.
This commit is contained in:
@@ -143,3 +143,28 @@ Prose.
|
||||
assert.equal(model.frontmatter.rounded['"2xl"'], undefined);
|
||||
});
|
||||
});
|
||||
|
||||
describe('parseDesignMd overview branch', () => {
|
||||
it('joins wrapped Key Characteristics bullets without leaking continuations into philosophy', () => {
|
||||
const md = `# Design System: Example
|
||||
|
||||
## Overview
|
||||
|
||||
**Creative North Star: "Structured clarity"**
|
||||
|
||||
**Key Characteristics:**
|
||||
|
||||
- Status remains understandable without relying on color
|
||||
alone.
|
||||
- Navigation controls remain visible when the viewport becomes
|
||||
narrow.
|
||||
`;
|
||||
const overview = parseDesignMd(md).overview;
|
||||
|
||||
assert.deepEqual(overview.keyCharacteristics, [
|
||||
'Status remains understandable without relying on color alone.',
|
||||
'Navigation controls remain visible when the viewport becomes narrow.',
|
||||
]);
|
||||
assert.deepEqual(overview.philosophy, []);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user