From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: two simple derived backend questions Date: Thu, 15 Oct 2015 09:46:07 +0200 Message-ID: <874mhsingg.fsf@gmx.us> References: <87k2qphxh2.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]:60647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmdEs-0008K2-Ot for emacs-orgmode@gnu.org; Thu, 15 Oct 2015 03:46:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmdEn-0000U8-L7 for emacs-orgmode@gnu.org; Thu, 15 Oct 2015 03:46:14 -0400 Received: from mout.gmx.net ([212.227.15.19]:62151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmdEn-0000U1-Eo for emacs-orgmode@gnu.org; Thu, 15 Oct 2015 03:46:09 -0400 In-Reply-To: (Matt Price's message of "Wed, 14 Oct 2015 21:59:52 -0400") 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: moptop99@gmail.com Cc: emacs-orgmode@gnu.org Hi Matt, Matt Price writes: >> > a) add a horizontal rule >> > >> > pandoc expects a horizontal rule at each slide division. So, if >> possible, >> > I would like to add an hhr element at the end of every headline. >> >> What=E2=80=99s a hhr element? >> >>
, I meant > >> Can you just use something like >> --------------------------- >> >> for a horizontal rule? AFAIK, it=E2=80=99s inserted as "---". >> >> yes. but then I will have to take out all the "---------------------" > elements if I want to go back to using my original org documents again. > The point is that I have lots of these lecture notes, and would prefer not > to alter them too severely if possible. In that case I would indeed use a filter and run it conditional on the file path, available through the info plist. You could can add lines via org-export-before-processing-hook. Combine, outline-next-heading (or just re-search-forward and org-heading-regexp), check with org-element-at-point or org-outline-level and go to the end of the headline and insert your line (if you use org-element-at-point for this, remember to skip backwards through the " \n\t"). > yes, that's right, I was being hasty. In any case, what I would like to do > is reproduce this behaviour in the markdown export; I have tried modifying > the md export but I am doing something wrong, clearly, and had hoped to g= et > some hints from the list... It gives a div already with ox-md, right? What do you want more? Do you want it to be an element? If so, use a filter on org-export-filter-special-block-functions that does a regexp replacement. Rasmus --=20 Don't panic!!!