From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: parsing formatted text Date: Fri, 29 Oct 2010 02:19:20 -0600 Message-ID: <87iq0lv2bb.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=48949 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBkBJ-0003Pt-V8 for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 04:19:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBkBI-0004NF-Fj for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 04:19:25 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:58975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PBkBI-0004N1-C7 for emacs-orgmode@gnu.org; Fri, 29 Oct 2010 04:19:24 -0400 Received: by ywl5 with SMTP id 5so1476030ywl.0 for ; Fri, 29 Oct 2010 01:19:23 -0700 (PDT) In-Reply-To: (Aidan Gauland's message of "Fri, 29 Oct 2010 07:50:17 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Aidan Gauland Cc: emacs-orgmode@gnu.org Hi Aidan, You could pass the text through the `org-export-string' function to generate a string of HTML from a string of Org markup. e.g. (org-export-string "plain plain *bold* plain" "html") returns the following string "

plain plain bold plain

" -- Eric Aidan Gauland writes: > Hello, > > I have written an elisp program to generate an ATOM feed from an > org-mode file. I want to generate appropiate HTML from fromatted text > (such as *bold* and /italic/). Since it does not use org's export > module (for which this isn't really appropriate anyway), I have no > idea if there is any way I can use existing org functions to parse a > paragraph to recognise formatted text so I can process it > appropriately, or if I must write my own parsing code. Can any of the > more experienced org-mode hackers offer any advice? > > Thanks, > Aidan Gauland > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode