Nicolas Goaziou <n.goaz...@gmail.com> writes: [...]
> (defun my-comment-removal (backend) > (delete-matching-lines "^[ \t]*#\\( \\|$\\)")) > (add-hook 'org-export-before-parsing-hook 'my-comment-removal) Nicolas, quick question as I am trying to understand the various hooks and filters that make up the (not so new anymore ;-) exporter. This little snippet works just fine for comment lines. However, I tried changing the regexp to one that matches an :ignoreheading: tag on a headline. This works when I do a LaTeX export but not an HTML one. Why would the behaviour be different in each case? I have tried using org-export-before-processing-hook as well but I get the same behaviour. I am soooo confused! Thanks, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.0.5-337-g9f3bed