From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: export (to gfm) with file local variables Date: Fri, 21 Aug 2015 21:30:03 +0100 Message-ID: References: <87mvxkvh84.fsf@alphaville.usersys.redhat.com> <8737zcz99j.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSsx5-0003y7-4J for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 16:30:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZSsx1-000432-1q for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 16:30:15 -0400 Received: from plane.gmane.org ([80.91.229.3]:38900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZSsx0-00042q-Rq for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 16:30:11 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZSswz-00006H-J3 for emacs-orgmode@gnu.org; Fri, 21 Aug 2015 22:30:09 +0200 Received: from cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net ([81.102.136.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Aug 2015 22:30:09 +0200 Received: from andreas.leha by cpc33-cmbg15-2-0-cust4.5-4.cable.virginm.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 21 Aug 2015 22:30:09 +0200 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: emacs-orgmode@gnu.org Hi Nick, Nick Dokos writes: > Andreas Leha writes: > >> Hi Nick, >> >> Nick Dokos writes: >>> Andreas Leha writes: >>> >>>> I forgot... >>>> >>>> Andreas Leha writes: >>>>> Hi all, >>>>> >>>>> How can I make my toy sample file below export properly to github >>>>> flavoured markdown (using ox-gfm)? >>>>> >>>>> (Of course including the file local variables in exported *.md file...) >>>> >>>> ... and without having them apply to the current *.org file. >>>> >>>>> >>>>> If I try I get >>>>> ,---- >>>>> | hack-local-variables: Malformed local variable line: "" >>>>> `---- >>>>> >>>>> Thanks, >>>>> Andreas >>>>> >>>>> >>>>> PS: the sample file >>>>> >>>>> #+md: >>>>> >>>>> * Test File >>>>> >>>>> With text. >>>>> >>>>> >>>>> #+md: >>>> >>>> >>> >>> Add a noexport section with a control-L as contents at the end. >>> Emacs only looks at the last "page" of the file for local variables >>> so the control-L will stop it. >>> >> >> Thanks! That is amazing! That solves my second problem. So, the >> original *.org file is indeed opened in Org mode. Nice. >> >> >> Now I still need to know how to export to github flavoured markdown >> (gfm) with the file local variables set. This still fails with >> ,---- >> | hack-local-variables: Malformed local variable line: "" >> `---- >> >> Any help with that? >> > > That seems to be caused by the empty lines in the Local Variables: > section of the md file: > >
>

Table of Contents

>
> >
>
> > > > # Test File > > With text. > > > > If I get rid of them manually, I think it goes away (although I don't > have gfm installed, so it complains about gfm-mode). > > That seems to be an ox-md (or perhaps ox-html) issue however and I'm not > equipped to wade into those waters. Assuming this is correct, maybe you > can add a filter to get rid of the empty lines? > Thanks for following that up! That is interesting. How did you see that file with the empty lines? I do not get anything exported -- neither md nor gfm. - Andreas