Hi Nicolas, 2015ko otsailak 15an, Nicolas Goaziou-ek idatzi zuen: > Perhaps. But [cite: ... |latex: :cap t |html: :cap t] isn't impossible > to write either.
It violates DRY. It (thus) makes it annoying to export a document to a new backend: you have to search through all the citations and copy any :cap keys to the new backend. Crazy idea: what if there was a “root” backend from which all other backends were derived? This would maintain consistency with existing attribute syntax (and possibly new, as proposed below), but also allow certain attributes to be passed to all backends. > > Anyway, time for another proposal. In fact, it seems that it would be > better to externalize these properties, e.g., > > [cite: ...]{latex :prop val}{html :prop val} > > or > > [cite: ...]{latex :prop val | html :prop val} > > No space allowed between the citation and the attributes. The big > advantage with this is that it can be extended to other objects while > still being backward-compatible. > > It would solve one long standing limitation: > > Text [[file:img1.png]]{html :width 50px} and > [[file:img2.png]]{html :width 60 px} Nice, I like it. Thanks, -- Aaron Ecay