Skip to content

Commit ae38bde

Browse files
authored
Merge pull request #149 from vivliostyle/chore-test-remove-title-attr
chore: Added test to exclude attribute syntax in title heading
2 parents bcc49c9 + f220a82 commit ae38bde

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/metadata.test.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,3 +534,12 @@ title: ["Foo", "Bar"]
534534
};
535535
expect(received).toStrictEqual(expected);
536536
});
537+
538+
it('Exclude attribute syntax in title heading', () => {
539+
const md = '# Foo {.bar}';
540+
const received = readMetadata(md);
541+
const expected: Metadata = {
542+
title: 'Foo',
543+
};
544+
expect(received).toStrictEqual(expected);
545+
});

0 commit comments

Comments
 (0)