From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ox-html] Multiple wraps around sections Date: Sun, 16 Mar 2014 15:21:25 +0100 Message-ID: <87ioreql5m.fsf@gmail.com> References: <87eh233unt.fsf@gmx.us> <87pplm5mch.fsf@gmx.us> <87r462qntm.fsf@gmail.com> <87a9cq5jio.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPBw0-00014u-Jh for emacs-orgmode@gnu.org; Sun, 16 Mar 2014 10:21:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WPBvu-0006zr-Q1 for emacs-orgmode@gnu.org; Sun, 16 Mar 2014 10:21:04 -0400 Received: from mail-wg0-x22d.google.com ([2a00:1450:400c:c00::22d]:39136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WPBvu-0006zn-Ib for emacs-orgmode@gnu.org; Sun, 16 Mar 2014 10:20:58 -0400 Received: by mail-wg0-f45.google.com with SMTP id l18so3658826wgh.4 for ; Sun, 16 Mar 2014 07:20:57 -0700 (PDT) In-Reply-To: <87a9cq5jio.fsf@gmx.us> (rasmus@gmx.us's message of "Sun, 16 Mar 2014 15:02:23 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > With a filter the endpoint isn't a problem. Only identifying the > top-level can be tricky=E2=80=94but you could use tags, assumin= g they are > not varying. You can also use a hook function that will mark first level headlines with some special string before export. Within the filter, you will recognize that string and remove it. > That a shame. Is there any other 'easy' way to recover the element > representation of, say, a headline? Often it's a lot easier to work > with than regexp "hacks". Well, the whole point of filters is to be able to work from a string instead of the full parse tree. For the latter, you can use a parse tree filter that will alter the tree in any way you like. For that task, some useful functions are `org-element-extract-element', `org-element-insert-before' and `org-element-adopt-elements'. Regards, --=20 Nicolas Goaziou