"Bruce D'Arcus" <bdar...@gmail.com> writes: > I'm not really following this discussion, but is this perhaps similar > to pandoc/djot's notion of "filters"? > > https://github.com/jgm/djot.js#filters
Nope. Filters are org-export-filters-alist. What we are talking about is a generic way to test Org buffer contents + AST and including/not including something into export output according to the test result. Like, 1. If there are images in Org source, include image-related CSS into resulting html 2. If exported paragraph consists of a single image, export it as latex "figure" environment. Otherwise, export as proper paragraph. 3. If we include \usepackage{foo} in latex export, there is no need to \usepackage{bar} because "foo" loads "bar" anyway. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>