On Tuesday, 3 Nov 2015 at 15:54, Phillip Lord wrote: > I am trying to implement a new backend based on the HTML export. I need > to do some post-processing to the source blocks that needs to be > optional. For some blocks I need to replace "[" with "\[" and for some I > don't. > > I am not sure whether to use headers or switches.
What about neither? Maybe something along #+ATTR_XXX: instead, where XXX is the name of your derived backend, along the lines of ATTR_HTML and ATTR_LATEX? Others may tell us that my suggestion is worse but I think playing around with the babel syntax is asking for trouble... -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-209-gba4d33