Create attribute with null value

Author: networkimprovCreated Sep 12, 2019Updated Oct 10, 2021
Labelsenhancement

Can extensions generate an empty attribute, e.g. <a href="..." download>...</a>? If not, could that be enabled?

I tried these:

mdi.renderer.rules.link_open = function(iTokens, iIdx, iOptions, iEnv, iSelf) {
   iTokens[iIdx].attrs.push(['download', null]); // yields download="null"
   //                       ['download']            yields download="undefined"

   return iSelf.renderToken(iTokens, iIdx, iOptions);
};