diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-20 23:34:25 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-21 17:16:47 -0400 |
| commit | 3ac7f9801255b0440647e83119524efb95f0ada7 (patch) | |
| tree | 76e1ced617a8f44eb0f100a6fcc291890f92ae0b /test/reference | |
| parent | things nix, including flake.nix update (diff) | |
markup: keep a utf-8 bom out of the yaml header
A file beginning with a utf-8 byte order mark had the mark read as part
of its first yaml key, so "title:" arrived as "title:" and every
value under that key was dropped silently: the document kept its text
and lost its title. Downstream that showed as an empty dc:title and an
empty <title> element in the epub, which epubcheck reports as two
errors.
The mark is now kept out of the header and body split, and so out of
the parse. It is not stripped when the file is read, because that text
is what source.digest is taken over and the digest names the file as it
sits on disk.
One document in the sample set begins with a mark. It is left as it is:
it is the case this guards against.
(assisted by Claude-Code)
Diffstat (limited to 'test/reference')
0 files changed, 0 insertions, 0 deletions
