Dear Filter Maestros in this group,
I couldn’t code myself out of a paper bag, so I have to ask for support here.
I have a md > HTML use case where I need several types of block-level elements (paragraphs, list items, figcaptions etc.) to have (auto-generated) identifiers, for example derived from MD5 or CRC-32 checksum. Actually, I wouldn’t mind every block element having an id.
(The idea is to make these IDs available as bookmarkable link targets, as seen in the headings of the Pandoc manual and may wikis.)
1. Can this be done using a (Lua) filter (that would have to skip user-defined ids)?
2. Does one exist that I missed?
3. If not, would someone be interested in writing it? Because I’d be happy to support that (financially).
I understand that this would break HTML validation for a document with multiple identical block elements / IDs, but that’s something I can live with.