From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Klein Subject: Re: How to convert a string to Org parsed tree Date: Sun, 28 Jul 2013 12:43:14 +0200 Message-ID: <51F4F5C2.1050004@mpip-mainz.mpg.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56402) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3ORm-0003kb-OM for emacs-orgmode@gnu.org; Sun, 28 Jul 2013 06:43:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V3ORe-00075A-Lz for emacs-orgmode@gnu.org; Sun, 28 Jul 2013 06:43:30 -0400 Received: from gate1.mpip-mainz.mpg.de ([194.95.63.248]:59383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V3ORe-00074g-Gi for emacs-orgmode@gnu.org; Sun, 28 Jul 2013 06:43:22 -0400 Received: from [10.20.2.71] (port=36286 helo=vmmail1.mpip-mainz.mpg.de) by gate1.mpip-mainz.mpg.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1V3ORX-0005Cc-1X for emacs-orgmode@gnu.org; Sun, 28 Jul 2013 12:43:15 +0200 Received: from p4fc56473.dip0.t-ipconnect.de ([79.197.100.115] helo=[192.168.254.115]) by vmmail1.mpip-mainz.mpg.de with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.72) (envelope-from ) id 1V3OR8-0006qT-3I for emacs-orgmode@gnu.org; Sun, 28 Jul 2013 12:42:50 +0200 In-Reply-To: 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 On 07/28/2013 12:18 PM, Yujie Wen wrote: > Hi, > > I am working on the org-reveal exporter and I need to convert a string > get from org-element-property into HTML format. The property string have > some Org-mode markups that need to be converted to relevant HTML labels. > For example, a string of "/italic/" to "italic" > > Is there any existing Org-mode functions can help me to achieve this > kind of functionality? > > Regards, > Yujie > Hi Yujie, how about applying the exporter to the string, e.g. something like (with-temp-buffer (insert (plist-get plist yout-property-string)) (org-html-export-as-html nil nil nil t new-plist) (buffer-string)) (didn't test, just typed this into the mail) Best regards Robert