From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brett Viren Subject: Re: Overriding org-html-headline or other export functions? Date: Mon, 29 May 2017 14:20:34 -0400 Message-ID: <86poer1q4t.fsf@bnl.gov> References: <8637bn3l9o.fsf@bnl.gov> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56157) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFPHU-0001Ik-RI for emacs-orgmode@gnu.org; Mon, 29 May 2017 14:20:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFPHS-0005PY-6C for emacs-orgmode@gnu.org; Mon, 29 May 2017 14:20:40 -0400 Received: from smtpgw.bnl.gov ([2620:10a:0:3::30]:33598 helo=smtpout4.bnl.gov) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1dFPHS-0005PN-1E for emacs-orgmode@gnu.org; Mon, 29 May 2017 14:20:38 -0400 In-Reply-To: (Charles C. Berry's message of "Mon, 29 May 2017 10:38:06 -0700") 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" To: "Charles C. Berry" Cc: "emacs-orgmode@gnu.org" "Charles C. Berry" writes: > You do have that wrong. This is exactly what export filters and > derived backends are for. In fact, you can use both. For an example, > see > > http://orgmode.org/worg/exporters/filter-markup.html > > You will want to change `latex' to `html' in the > > `(org-export-define-derived-backend ...)' > > call and delete all filters except for `:filter-headline'. And revise > `ox-mrkup-filter-headline' accordingly. Thanks for checking me on this, but I still don't see it. If I understand, a derived HTML backend with my own filter-headline would let me add my own extra HTML *outside* the "

...

", "

...

", etc, HTML that is generated by the base org-html-headline filter. But for the output I want I need to add my extra HTML *inside* the contents of the "..." tags. And I don't see an export filter for this "..." part. Or, maybe you suggest I do direct "surgery" on the TEXT argument that gets passed in to the filter and insert the "..." that way? I guess it could work to find the end of the "" opening tag and then insert my "..." part. I'll try this approach. -Brett.