From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabrice Niessen Subject: Re: export "simple" HTML? Date: Mon, 13 Oct 2014 09:47:51 +0200 Message-ID: <86h9z8wguw.fsf@example.com> References: <87a9512kk5.fsf@ericabrahamsen.net> <8761fo3drd.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Eric Abrahamsen wrote: > Grant Rettke writes: >> Eric Abrahamsen wrote: >>> Gary Oberbrunner writes: >>> >>>> Has anyone created an HTML exporter that just exports "simple" HTML >>>> with no fancy CSS stuff, just "normal" tags like and >>>> and and and
  • ? Basically something that could be pasted >>>> into an email or a larger document. The current HTML export is >>>> beautiful, but it adds all kinds of divs, spans, CSS tags, and >>>> other extraneous stuff. >>> >>> Try the "body only" export option: in the export dispatcher, hit >>> "C-b" to toggle. That should give you clean HTML with no file >>> template, and no bells and whistles. >> >> If it is an easy answer, how would one do this in batch mode? > > I've never actually exported anything in batch mode, so I won't be > able to provide a real recipe, but body-only is one of the main export > options, usually given as an argument to org-export-as (and > family). If you're calling any one of those export functions directly > as part of the batch export, you can just set that argument to t. Making advertisement for my own stuff, you now have the option "--body-only" to the Orgmk family of scripts (among others, org2html). See https://github.com/fniessen/orgmk for more information (or example code). Best regards, Fabrice -- Fabrice Niessen Leuven, Belgium http://www.pirilampo.org/