standardebooks / tools

The Standard Ebooks toolset for producing our ebook files.
Other
1.43k stars 127 forks source link

se lint: id attributes for inline img? #744

Closed gvtulder closed 2 months ago

gvtulder commented 3 months ago

Should inline images receive an id attribute? The manual says they should:

SEMoS 7.8.1.2 If the image is inline with the text, the id attribute is on the <img> element.

<img alt="..." src="..." id="illustration-1" />

but se lint thinks they shouldn't: https://github.com/standardebooks/tools/blob/36d9a6594688ee6ac5360def7b05996aec5f6a94/se/se_epub_lint.py#L1782-L1785

acabal commented 2 months ago

Yes, this is already fixed in the next branch of the manual, which has not yet been released.